HTACCESS - Joomla index.php Fix


/ Published in: Apache
Save to your folder(s)

When using Joomla, allows you to redirect index.php to the root ( to prevent duplicate content ), without affecting the Joomla admin.


Copy this code and paste it in your HTML
  1. RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php(/[^\ ]*)?\ HTTP/
  2. RewriteRule ^index\.php(/(.*))?$ /$2 [R=301,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.