Walled Posted August 2, 2016 Share Posted August 2, 2016 (edited) Hello How can I convert my urls to SEO friendly URLS using .htaccess ? example before http://statmood.com/websites/facebook.com after http://statmood.com/websites/facebook.com.html htaccess code below : <IfModule mod_rewrite.c> # Disable Directory Listing Options -Indexes Options +FollowSymLinks RewriteEngine On # RewriteBase / # Prevents requests for /index.php from being rewritten, to avoid infinite loops. RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule> Edited August 2, 2016 by Walled Quote Link to comment https://forums.phpfreaks.com/topic/301726-htaccess-help/ Share on other sites More sharing options...
requinix Posted August 2, 2016 Share Posted August 2, 2016 Both of those are already friendly. I would say the "before" one is actually better than the "after". Quote Link to comment https://forums.phpfreaks.com/topic/301726-htaccess-help/#findComment-1535472 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.