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 Link to comment https://forums.phpfreaks.com/topic/46562-solved-rule-help-please/ 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 Link to comment https://forums.phpfreaks.com/topic/46562-solved-rule-help-please/#findComment-228361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.