Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mod Rewrite Queston

Status
Not open for further replies.

biglurch

Programmer
Aug 25, 2005
35
US
Hi,
I am trying to use mod rewrite to take everything after the domain name in the url to then be parsed into variables and generate pages based on what is there. The problem is that image requests wont load because they go through the index page. So what im trying to do is redirect all image requests to a seperate server with:

rewriteRule ^([^.]+\.(gif|jpg))$ [P]

if i hit is with it redirects it. But when i do the folder/some page which loads page i want dynamically built all the images within it keep the link folder/some page and just add the locationn on the end of it for example:

folder/some page/images/test.jpg

Any help with how i can get the image requesst to go to the other server would be greatly appreciated.

Thanks

Live by the code, Die by the code!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top