Need help with Apache redirect commands

ds1718

Junior Member
Joined
May 25, 2010
Messages
149
Reaction score
48
Can someone please help me to get Apache rewrite commands working for the following idea.

I am looking to create a redirect command(s) that do the following

I want to ignore a portion of a web url request.

Example

I want all of the following to return the same image..

Code:
www.imagehost.com/imagenumber/88/77/66/55.jpg
Code:
www.imagehost.com/imagenumber/xx/xx/xx/xx.jpg
should return this image file

Let me know if this is the wrong forum for this request, but I am trying to build a way to create 100,000's of url's to the same image.

Thanks.. Figured that was similar to cloaking..

DS
 
put this inside your
.htaccess

Code:
RewriteEngine on
RewriteRule .* imagenumber.jpg
 
put this inside your
.htaccess

Code:
RewriteEngine on
RewriteRule .* imagenumber.jpg

Except you need to be more generic with an expression because your example will only redirect requests for that specific image number instead of the many the OP is wanting.

Enjoy ..... :cool2:



 
Back
Top