monkey_magix Posted April 11, 2007 Share Posted April 11, 2007 Hi, I have a "images.php" file in my htdocs directory but I also have an images directory there. I would like rewrite to take http://www.mydomain.com/images/ => http://www.mydomain.com/images.php I tried the usual : RewriteRule ^images$ images.php [L] but apache thinks that I'm trying to access the images directory http://www.mydomain.com/images/ rather than the file images.php. Any way around this problem? cheers dan Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted April 13, 2007 Share Posted April 13, 2007 you might try RewriteRule ^\/images\/$ images.php [L] Or, if you really have an images directory, you could create an .htaccess file in that directory with this line: DirectoryIndex /images.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.