redknight Posted May 20, 2009 Share Posted May 20, 2009 Hi I have rewrited multiple dirs (from http://www.web.net/dir1/web.php?q=pagewxwx2121_fgfdg-dfgdf to http://www.web.net/dir1/pagewxwx2121_fgfdg-dfgdf.php) and that is working fine, until the dir has a - in the name like http://www.web.net/dir100-extra/page12sdfs_kiui-uikk.php. I get a 404 for this. RewriteRule ^([^/]+)/([^/]+)\.php$ /$1/web.php?q=$2 [QSA,L] Any help needed and apprediated, please Quote Link to comment Share on other sites More sharing options...
dreamwest Posted June 2, 2009 Share Posted June 2, 2009 /$1/web.php Cant be dynamic, its looking for http://site.com/???/web.php Does the $1 directory exist? 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.