Question

How to remove index.php from URLs in a Joomla! installation

  • Posted June 17, 2014

Hi

I have deployed an Ubuntu 14.04 LAMP droplet. I installed Joomla! to build my static pages website on it. Installed Joomla! and it started working fine (as expected).

Now, to further improve the aesthetics of the site, I decided to remove “index.php” from URLs. For example, while visiting a normal SEF URL like http://www/salescrib.com/index.php/sales-crib-tour, I wanted my visitor to click on the “Tour” menu link, and it should be directed to http://www.salescrib.com/sales-crib-tour.

I have been trying to find a solution to the subject issue since 3-4 days but no success. I tried searching Google & your blogs, but all they answer is changing htaccess.txt to .htaccess and then enabling the URL Rewriting in Global Config. But that throw 404 ‘Page Not Found’ error.

I know I’m missing some petty tweek but for a mechanical engineer, it is a little hard to understand the sophiticated programming codes :)

What am I missing? Can someone please help?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Voila!

Thanks @alexandre for your link to mod_rewrite article. I was missing the edit in my “/etc/apache2/sites-available/000-default.conf”

Now it works stupendously at http://www.salescrib.com/sales-crib-tour

Thanks for @jhoedram for your contribution.

Well this confirms that for all my queries I can start directly from DigitalOcean.com/community in place of reading those haunting pages on Google :p

Is <code>mod_rewrite</code> active? Run <code>phpinfo()</code> and check it out! In <a href=“https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite”>this article</a> you can find how to enable rewrite module in your server.

I have worked with joomla for a long time to remove the “index.php”, you must activate. htaccess located in the root of your website (principal), possibly as htaccess.txt have, for this case only rename the name. htaccess

I hope I could help