cancel
Showing results for 
Search instead for 
Did you mean: 

Base URL includes /index.php/

SOLVED

Base URL includes /index.php/

I've just installed a fresh Magento x1 instance and my URLs all contain /index.php/

As an example the About Page looks like ...
http://mydomain.com/index.php/about-magento-demo-store/

when i'd like it to be

http://mydomain.com/about-magento-demo-store/

 

The logo link URL is ...

http://mydomain.com/index.php/

when i expect it to be

http://mydomain.com/

 

I've checked the admin config > web > unsecure url

It doesn't contain /index.php/ so I have no idea why it's there

 

Can anyone tell me how to remove this please?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Base URL includes /index.php/

Hello Cooshti,

 

What you need to do is enable Web Server Rewrites for Search Engine Optimizations.

 

Taken from StackExchange, just to be sure I give you the exact steps since I currently do not have a Magento 1.x install available:-

1) Log-in Magento Admin
2) Go to System -> Configuration -> Web.
3) from Search Engine Optimisation tab Use Web Server Rewrites select 'YES'.
4) Make sure your Secure and Unsecure base urls should end with “/”.
5) now edit your .htaccess ( will be in magento root folder ) and pate the below code and save:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]
</IfModule>

 

Leslie B.
Aspiration Hosting - Magento 1 & 2 Optimized Cloud Hosting
Problem solved? Click Accept as Solution!

View solution in original post

3 REPLIES 3

Re: Base URL includes /index.php/

Hello Cooshti,

 

What you need to do is enable Web Server Rewrites for Search Engine Optimizations.

 

Taken from StackExchange, just to be sure I give you the exact steps since I currently do not have a Magento 1.x install available:-

1) Log-in Magento Admin
2) Go to System -> Configuration -> Web.
3) from Search Engine Optimisation tab Use Web Server Rewrites select 'YES'.
4) Make sure your Secure and Unsecure base urls should end with “/”.
5) now edit your .htaccess ( will be in magento root folder ) and pate the below code and save:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]
</IfModule>

 

Leslie B.
Aspiration Hosting - Magento 1 & 2 Optimized Cloud Hosting
Problem solved? Click Accept as Solution!

Re: Base URL includes /index.php/

Perfect ... thanks so much Smiley Happy

Re: Base URL includes /index.php/

Hi 

How are you doing. You were working on setting up the magento store. Was it for a store or were you learning to do it.

let us know if you need some support.


@cooshti wrote:

Perfect ... thanks so much Smiley Happy