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!

HTTPServer - redirect and images directory

Status
Not open for further replies.

nickinmke

Programmer
Oct 11, 2010
2
0
0
US
Hi all,

We have developed a website hosting service. When I try to create a website that begins with "images", javascript etc. in the name, it gives me 404 error. It works well otherwise. Here is what I found in vhosts.d directory - looks like apache redirect is restricting that -

RewriteRule ^/(images|javascript|css|cgi-bin|userFolders|
|static) - [L]

I tried to remove the images, commented this rule. it did not help.

any ideas? Thanks for help.

Regards,
nick
 
ok, is there a way to just look for the exact match in the above example?
e.g. if it finds images then make it last rule, if it is imagesnewfile then go on.

currently, it's matching anything that begins with images and making it last rule to run (-L).

thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top