# URL Rewrite Problem - URGENT

**URL:** https://forum.kirupa.com/t/url-rewrite-problem-urgent/177100
**Category:** programming
**Created:** [January 30, 2006, 8:15am UTC](https://forum.kirupa.com/t/url-rewrite-problem-urgent/177100 "2006-01-30T08:15:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DHDesign](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DHDesign](https://forum.kirupa.com/u/DHDesign)
#### Post date: [January 30, 2006, 8:15am UTC](https://forum.kirupa.com/t/url-rewrite-problem-urgent/177100/1 "2006-01-30T08:15:03Z")

</div>

hey everyone, i have a simple rewrite in my .htaccess file as such:

RewriteEngine on  
RewriteRule ^files.php$ /test/folder/login.php [L]

so right now, this partially does the trick…when the user goes to files.php, it actually shows login.php from /test/folder/login.php

the problem: there are images in login.php which are referenced as such for example: \<img src="…/…/products/images/product1.jpg"\> and these pictures are not coming up anymore with the rewrite of the URL…anyone know how to fix this?

thanks a bunch!  
ps - urgent…please reply ASAP. 🙂
