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 Quote Link to comment 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] 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.