URL rewriting not working index.php

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
biggr620
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jan 31, 2018 4:22 am

URL rewriting not working index.php

Post by biggr620 » Fri Feb 02, 2018 5:01 pm

I have a website that i just upgraded from 3.7.5 to 3.8. Prior to the upgrade had no issues with URL rewriting to eliminate index.php from urls, but now I cannot get it to work. I have turned "Use URL rewriting" to yes. I have renamed htaccess.txt to .htaccess but it just comes up with an internal server error.
I don't understand what I am missing - I use this process with every Joomla site I develop without issue, but not working on this one.
Anyone have any thoughts on this?

biggr620
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Jan 31, 2018 4:22 am

Re: URL rewriting not working index.php

Post by biggr620 » Mon Feb 05, 2018 9:22 pm

Finally found a solution. If anyone else is having this issue, you need to add this to your .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On

# Removes index.php from ExpressionEngine URLs
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”