It is currently Tue Jan 21, 2020 4:54 pm

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Rename index.php
PostPosted: Sat May 09, 2015 10:43 pm 

Joined :
Sat May 09, 2015 10:00 pm

Posts : 2
Hi everybody!

Any idea for url renaming from index.php to some other name. please help me.


Report this post
Top
 Profile  
 
 Post subject: Re: Rename index.php
PostPosted: Mon May 18, 2015 1:14 pm 
Apptha Team

Joined :
Sat Jul 02, 2011 1:20 pm

Responses Posted : 331
Hi,

The index.php file cannot be renamed, but can be removed from the URL if you don't want to see. Modifying .htaccess file in the root of the server will remove the index.php in the website.

If mod_rewrite is enabled, then htaccess-file allows you to activate the RewriteEngine. This is used to redirect SEF-links to the Joomla! application-file index.php, but it can also be used to redirect old URLs to new URLs. In these cases, all additions are made just after the RewriteEngine statement, so before the actual Joomla! SEF-section.

Open .htaccess file and check

RewriteEngine On

Removing /index.php/

To remove the /index.php/ part from all URLs, add two lines after the RewriteEngine statement:

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


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron