Support

Admin Tools

#14760 How to remove /index.php from url

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 24 January 2013 07:00 CST

user68233

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yeo

Have I searched the tickets before posting? Yep
Have I read the documentation before posting (which pages?)? Yep
Joomla! version: (2.5.8)
PHP version: (5.3.20)ySQL version: (5)
Host: (self)
Admin Tools version: (latest update)

Description of my issue:

how the heck I can remove /index.php from the url. It is removed from everything in the site BUT the HOME navigation item and the Meyer Law P.C. logo. I’ve added the following to the htaccess file as suggested here: http://www.yireo.com/tutorials/joomla/joomla-administration/1338-get-rid-of-indexphp-in-your-joomla-urls - which has worked in the past, but I’m assuming that the Admin Tools Htaccess file is immune to my puny attempts

This is what is in the htaccess file:

RewriteCond %{REQUEST_URI} ^/index.php/
RewriteRule ^index.php/(.*) /$1 [R,L]

nicholas
Akeeba Staff
Manager

I think you're trying to scratch your right ear with your left foot. Removing index.php from the URLs is dead simple. You need to do the following:

  • In the Global Configuration of your site find the "SEO Settings" area under the Site tab. Set BOTH the "Search Engine Friendly URLs" and "Use URL rewriting" to Yes. My guess: the latter one is set to No in your site.
  • In .htaccess Maker enabled the "Redirect index.php to the site's root" to Yes, then Save and Create .htaccess.

Of course this will NOT work if your template has hard-coded the index.php in its code. There are many templates which link the logo of the site to JURI::base().'/index.php', therefore hard-coding index.php into the URL. In this case you need to talk with your template provider.

Moreover, if you have entered a URL in the form of http://www.example.com/index.php in an article, module, menu item and so on then yes, the URL you will see on the page's source will contain index.php because that's what you told Joomla! to do.

BTW, this is all very well tested on this site and my blog before I even published the very first version of Admin Tools ;)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!