Ghamdan Posted October 31, 2012 Share Posted October 31, 2012 I am trying to use mode_rewrite in my project but it is not working. httpd.conf Settings: <Directory "C:/xampp/htdocs/mysite/blog"> AllowOverride All </Directory> .htaccess Settings: <IfModule mod_rewrite.co> RewriteEngine on RewriteBase /mysite/blog/ # For article: RewriteRule ^article/([0-9]+)/?$ article.php?id=$1 </IfModule> How can I fix this problem? Thank you. Link to comment Share on other sites More sharing options...
Edward Posted October 31, 2012 Share Posted October 31, 2012 Have you checked out this previous thread, i was suffering from a could be similar problem: http://www.larryullman.com/forums/index.php?/topic/1732-enabling-url-rewriting-not-working/ Things to look out for. 1. Make sure the file is of type HTACCESS and not just FILE (So the file will have the period in front .htaccess) 2. Make sure in your httpd.conf that mod_rewrite has the .co extension as my extension was actually .so so it wasn't exactly as the book had stated, all the book logic was 100% correct. I would confirm these two factors to begin with and if its not one of these we can investigate your issue further. 1 Link to comment Share on other sites More sharing options...
Ghamdan Posted October 31, 2012 Author Share Posted October 31, 2012 I have read your post : Enabling Url Rewriting Not Working httpd.conf : LoadModule rewrite_module modules/mod_rewrite.co the htaccess file is: .htaccess But it is still the same. Thank you. Link to comment Share on other sites More sharing options...
Edward Posted November 1, 2012 Share Posted November 1, 2012 Can you paste a full copy of the httpd.conf script (you can edit this down later once we have taken a look). Also what Server are you using, and are you using Mac or Windows? Link to comment Share on other sites More sharing options...
Recommended Posts