How to remove index.php from URLs in Joomla 3.1
As we continue to review the SEO settings in Joomla 3.0, the next option we get to is Use URL rewriting. In our testing, we noticed that when the Use URL rewriting option was enabled, index.php was removed from our URLs. In this tutorial we'll show you how to use this Use URL rewriting tool in Joomla 3.0.
To enable Use URL rewriting in Joomla 3.0:
- Log into your Joomla 3.0 dashboard
- In the left menu, click on the Global Configuration link under the SYSTEM heading
- There are several tabs at the top of the page. If you are not on the Site tab, click Site.
- On the right side of the page, find the Use URL rewriting option (see the screenshot at the top of the article). Adjust the setting to Yes / No, and then click Save in the top left menu.
Please be sure to take note of the following:
Select to use a server's rewrite engine to catch URLs that meet specific conditions and rewrite them as directed. Available for IIS 7 and Apache.
Apache users only! - Rename htaccess.txt to .htaccess before activating.
IIS 7 users only! - Rename web.config.txt to web.config and install IIS URL Rewrite Module before activating.
This setting only takes effect if your set Search Engine Friendly URLs to Yes.
You can see in the table below how Use URL rewriting affected one of our URLs:
Use URL rewriting - YES
Use URL rewriting - NO
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
Joomla 3 SEO Settings
2014-06-27 6:55 am
Thanks, it removed index.php
but there is a problem that i couldn't resolve:
after that, because in all urls were use index.php then it shows 404 error
for example domain.com/contact couldn't be found (because its real address in domain.com/index.php?contact)
2014-06-27 9:19 am
To be sure, go ahead and clear your cache and test again. If it is still persistent, make sure you renamed the .htaccess file properly as advised in step 4. It is most often caused by this.
2014-07-01 7:03 pm
I have same problem:
running from home on ubuntu server 13.10, joomla 3.3.1, with PHP 5.5.3-1ubuntu2.3
I have done the htaccess stuff, 000-sites-enabled and i think it could be an issue with apache and modrewrite itself.
Is there a noobsafe way/doc to figure it out for basic, simple rewrite (removing /index.php?) as i can not get my head around the apache docs :(
2014-07-01 7:28 pm
I've been looking around and the best reference I could find on properly setting mod_rewrite can be found here. Take a look at the comments there as well the provided solutions and see if it doesn't provide you the information to properly set MOD_REWRITE.