AbydosGater Posted July 21, 2007 Share Posted July 21, 2007 Hey guys. Im currently using the following .htaccess for my mod rewrite.. RewriteEngine On RewriteRule ^modules/([A-Za-z0-9-]+)/([0-9]+)/?$ index.php?module=$1¶ms=$2 and that works fine.. no problem.. But i want to take out the /modules .. so its just.. RewriteEngine On RewriteRule ^/([A-Za-z0-9-]+)/([0-9]+)/?$ index.php?module=$1¶ms=$2 But when i do it just gives me a 404 not found error.. blah blah was not found on this server.. Does anyone know why? Mod_rewrite is capable of root directory use isnt it? Or do i have to keep the /modules? Any help greatly appriciated! Andy Link to comment https://forums.phpfreaks.com/topic/61104-solved-mod-rewrite-not-working-from-root-directory/ Share on other sites More sharing options...
AbydosGater Posted July 21, 2007 Author Share Posted July 21, 2007 Hey sorry realised if i take out the forward slash from the start it works now! [solved] Link to comment https://forums.phpfreaks.com/topic/61104-solved-mod-rewrite-not-working-from-root-directory/#findComment-304166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.