Remove index.php from Joomla URL’s
I spent hours trying to figure this out and thought I would write about the solution. When turning on Search Engine Friendly URL’s in Joomla, they begin adding an extra index.php within the URL’s so that it looks something like this – http://www.yoursite.com/index.php/category/article.
I want the URL to be http://www.yoursite.com/category/article.
It’s cleaner and better for the search engines.
So, here are the steps I took to remove the unnecessary index.php:
- Go to the Global Configuration area within your Joomla admin.
- Under SEO Settings, click YES for the following two items:
- Search Engine Friendly URLs
- Use Apache mod_rewrite
- Now, go to your htaccess.txt file at the root of your site and rename the file .htaccess.
- Use some sort of text editor (I use text wrangler) to remove the ‘#’ before the words ‘RewriteBase /
- For me, this was around line 53 of the .htaccess file.
- Now, try to navigate around your Joomla website. The index.php should be gone.
Related posts:
[...] Pełny artykuł na: Remove index.php from Joomla URL's | EPR Creations LLC [...]
great post as usual!
WORKS!! a dream after trying other suggestions and the joomla forums nothing worked.
Thank You.
Brian
Fantastic! Thank you – btw, I had to change the line to
RewriteBase /joomla
as my site is still in a sub-folder – but, works perfectly!
I followed your intstructions to remove the index.php from my url. It shortened the url, but now states that the web page is not found. What can I do to fix this error?
Thanks.
Hi Dawn – what are your current settings for
– Use Apache mod_rewrites
– Add suffix to URL
Please let me know. That might have something to do with it.
Hey Erik:
I have both the Apache mod_rewrites and add suffix to url both on yes.
Dawn, please send me an email with your site information so I can take a closer look. You can use the email on my contact page of this website.
finally … great post and thank you
This is great post and help me to solve URL problem