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 Link to comment https://forums.phpfreaks.com/topic/158929-mod_rewrite-works-but-not-with-the-sign/ 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? Link to comment https://forums.phpfreaks.com/topic/158929-mod_rewrite-works-but-not-with-the-sign/#findComment-848155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.