Hi,
I was hoping someone could offer me a little assistance please?
I'm looking to remove the index.php from the url
so for example currently my website is displayed as:-
http://websiteexample.co.uk/index.php/help.html
I'm hoping to change this to
http://websiteexample.co.uk/help.html
There are a few topics already created but i've still not been able to get it to work. I'm currently on version 1.5.23 (looking to update soon) my SEO settings are set as
Search Engine friendly Yes
Use Apache mode No
Add suffix to URL Yes
I then read that I need to rename the htaaccess file, to start can someone confirm for me how i will know which htaaccess file i will need to rename? is this the file under /public_html/?
Any help is really appreciated.
Remove index.php from URL?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
- imanickam
- Joomla! Master
- Posts: 28204
- Joined: Wed Aug 13, 2008 2:57 am
- Location: Chennai, India
Re: Remove index.php from URL?
To remove the text string index.php, in addition to setting the option "Search Engine Friendly URLs" to Yes, you have to also set the option "Use Apache mod_rewrite" to Yes. After this you have to copy the file htaccess.txt to .htaccess
The file htaccess.txt is in the directory where Joomla! is installed.
Review of the content of the help screen (https://docs.joomla.org/Help15:Screen.config.15) would be of help.
Note: Joomla! 1.5 is no longer supported. The current version of Joomla! is 3.5.1. In addition, the last version of Joomla! 1.5 is 1.5.26 (https://docs.joomla.org/Joomla_1.5_version_history) with two hot fixes (https://docs.joomla.org/Security_hotfix ... L_versions) after that.
The file htaccess.txt is in the directory where Joomla! is installed.
Review of the content of the help screen (https://docs.joomla.org/Help15:Screen.config.15) would be of help.
Note: Joomla! 1.5 is no longer supported. The current version of Joomla! is 3.5.1. In addition, the last version of Joomla! 1.5 is 1.5.26 (https://docs.joomla.org/Joomla_1.5_version_history) with two hot fixes (https://docs.joomla.org/Security_hotfix ... L_versions) after that.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
- Per Yngve Berg
- Joomla! Master
- Posts: 30930
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri May 27, 2016 11:39 am
Re: Remove index.php from URL?
Thanks guys,
imanickam so I have to rename the htaccess.txt file to .htaccess? Do i have to make any changes within this file or do i only have to rename it?
Per Yngve Berg Thanks, i have downloaded the zip file and i can see the htaccess file in the root directory (same as mine)
imanickam so I have to rename the htaccess.txt file to .htaccess? Do i have to make any changes within this file or do i only have to rename it?
Per Yngve Berg Thanks, i have downloaded the zip file and i can see the htaccess file in the root directory (same as mine)
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri May 27, 2016 11:39 am
Re: Remove index.php from URL?
I have made the apache change but I get the following error (not edited the htaaccess file yet)
Not Found
The requested URL /test.html was not found on this server.
Apache Server at [spam].co.uk Port 80
Not Found
The requested URL /test.html was not found on this server.
Apache Server at [spam].co.uk Port 80
- imanickam
- Joomla! Master
- Posts: 28204
- Joined: Wed Aug 13, 2008 2:57 am
- Location: Chennai, India
Re: Remove index.php from URL?
It is not clear from your answer whether you have renamed the file htaccess.txt to .htaccess? Yes, as the documentation says, you have to rename the file htaccess.txt. As such the file may not need any change. However, depending on the environment, things may have to changed within the file.
Whether the Home page gets displayed?
What is the URL of your site so that others can see what is happening?
Note: Test whether your Apache server has been correctly configured to handle mod_rewrite. Review of the document https://docs.joomla.org/How_to_check_if ... our_server would be of help.
Whether the Home page gets displayed?
What is the URL of your site so that others can see what is happening?
Note: Test whether your Apache server has been correctly configured to handle mod_rewrite. Review of the document https://docs.joomla.org/How_to_check_if ... our_server would be of help.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri May 27, 2016 11:39 am
Re: Remove index.php from URL?
Hi, yes i renamed the file to .htaccess and changed the apache to Yes however as in my previous post when i click on a link i get an error page
Not Found
The requested URL /test.html was not found on this server.
Apache Server at mywebsite.co.uk Port 80
I have followed your documentation and it does not appear that apache is working as after renaming it to .htaaccess i replaced all the text with
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^joomla\.html http://www.joomla.org/? [R=301,L]
Then when i browse to
http://www.mywebsite.co.uk/joomla.html
I get the following error
Not Found
The requested URL /joomla.html was not found on this server.
Apache Server at www.mywebsite.co.uk Port 80
Not Found
The requested URL /test.html was not found on this server.
Apache Server at mywebsite.co.uk Port 80
I have followed your documentation and it does not appear that apache is working as after renaming it to .htaaccess i replaced all the text with
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^joomla\.html http://www.joomla.org/? [R=301,L]
Then when i browse to
http://www.mywebsite.co.uk/joomla.html
I get the following error
Not Found
The requested URL /joomla.html was not found on this server.
Apache Server at www.mywebsite.co.uk Port 80