Skip to content

Instantly share code, notes, and snippets.

@Kubik-Rubik
Last active October 21, 2024 16:44
Show Gist options
  • Save Kubik-Rubik/90c1f8b56283a840fa476c33c10f4008 to your computer and use it in GitHub Desktop.
Save Kubik-Rubik/90c1f8b56283a840fa476c33c10f4008 to your computer and use it in GitHub Desktop.
CMS Joomla! - Redirects requests with `/index.php/` in the URL to the corresponding SEF-URL - .htaccess rule
# Add the rule to the "Custom redirects" section
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php/ [NC]
RewriteRule ^index\.php/(.+)$ /$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment