deansaddigh Posted June 19, 2009 Share Posted June 19, 2009 Hi guys, all i am trying to do is re-write my php pages to look like html pages. i found this code on the internet Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [nc] i have enabled mod rewrite on my apache server. and saved the .htaccess file in the route of my site. It does absolutley nothing and my http://localhost/index.php stay as http://localhost/index.php ive attached an image to show that my .htaccess file is saved in route [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/162924-solved-htaccess/ Share on other sites More sharing options...
wildteen88 Posted June 19, 2009 Share Posted June 19, 2009 mod_rewrite does not rewrite the links within your pages for you. You have to update your links manually. You should be going to http://localhost/index.html Quote Link to comment https://forums.phpfreaks.com/topic/162924-solved-htaccess/#findComment-859696 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.