hello, I am using RewriteRule (.*)/index-(.*)\.htm$ search.php?q=$1&s=$2 [QSA,L] RewriteRule (.*)/index(.*)\.htm$ search.php?q=$1 [QSA,L] PHP: and output is http://www.site.com/xxxx/index.htm if somobody writes http://www.site.com/xxxx/ it says ERROR 404 - PAGE NOT FOUND. Because obviously there is no folder called xxxx. what can i do to solve this problem? I want to redirect every query made to get http://www.site.com/xxxx/ to http://www.site.com/xxxx/index.htm Thanks
Depending on your operating system on the server you can do a 'Force404' So all page errors 404 will go to your customised error page and then you simply find a redirect script that will send them to whatever page you like! Regards, AndrewMKP