Try the Demo

Magento Forum

   
Page 2 of 2
How do I remove /index.php/ from the admin URL. 
 
FetchDesigns
Sr. Member
 
Avatar
Total Posts:  124
Joined:  2008-04-11
Chicago, IL
 

I found out that it adds the admin “folder” when it shouldn’t.  When you access the Magento Connect Manager it should go to http://www.url.com/downloader...., but instead it displays http://www.url.com/admin/downloader.  So if I just removed the “admin” I can access it just fine.  I’m using a custom “admin” folder (so it’s actually not admin, but a custom name I gave it) so I don’t know if that has anything to do with it?

Either way, it’s easy to get around.  I’m just so thrilled that this extension solved the issue on my site.  What a huge relief.  Thanks!

 Signature 

Stephanie
Web Design & Development… FetchDesigns.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
clockworkgeek
Sr. Member
 
Avatar
Total Posts:  78
Joined:  2009-07-31
 

From that it sounds as if you set a ‘Custom admin URL’ in System > Configuration > Admin. Which would have the same problematic effect without any added extensions.

The generally accepted way of changing the “admin” path is instead by editing “frontName” in the file /app/etc/local.xml (you might want to disable the cache first).

 Signature 

My extensions

 
Magento Community Magento Community
Magento Community
Magento Community
 
FetchDesigns
Sr. Member
 
Avatar
Total Posts:  124
Joined:  2008-04-11
Chicago, IL
 

Yup, that did it.  Thanks a bunch!

 Signature 

Stephanie
Web Design & Development… FetchDesigns.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
ramphenom
Jr. Member
 
Total Posts:  1
Joined:  2011-09-25
 

I had to change the regex to RewriteCond %{REQUEST_URI} ^(.*)index.php/admin.*$

Anyhow,thanks a lot.

 
Magento Community Magento Community
Magento Community
Magento Community
 
khussain21
Jr. Member
 
Total Posts:  2
Joined:  2011-05-13
 

BEST SOLUTION IF YOU GOT INDEX.PHP/ADMIN ISSUE.....  5 STAR

jbova - 20 April 2009 03:49 PM

Hi Rod_C,

<IfModule mod_rewrite.c>

## enable rewrites
   
Options +FollowSymLinks
   RewriteEngine on

## Rewrite to subfolder magento
   
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.cxm$
   
RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond 
%{REQUEST_FILENAME} !-d
   RewriteRule 
^(.*)$ /magento/$1
   RewriteCond 
%{HTTP_HOST} ^(www.)?mydomain.cxm$
   
RewriteRule ^(/)?$ magento[L]

## All other rewrite rules apply to magento folder
   
RewriteBase /magento/

## workaround for HTTP authorization in CGI environment
    
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

## always send 404 on missing files in these folders
    
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

## never rewrite for existing files, directories and links
    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteCond 
%{REQUEST_FILENAME} !-l

## never rewrite for URI beginning with admin
    
RewriteCond %{REQUEST_URI} !^/admin.*

## rewrite everything else to index.php
    
RewriteRule .* index.php

## externally rewrite index.php/admin to admin
    
RewriteCond %{REQUEST_URI} ^/index.php/admin.*$
    
RewriteRule ^index.php/admin(.*) /admin$1 [R]

</IfModule>

 
Magento Community Magento Community
Magento Community
Magento Community
 
manipaliwal
Jr. Member
 
Total Posts:  2
Joined:  2009-08-17
 

This worked perfectly.. Thanks a lot smile

khussain21 - 30 May 2012 12:22 PM

BEST SOLUTION IF YOU GOT INDEX.PHP/ADMIN ISSUE.....  5 STAR

jbova - 20 April 2009 03:49 PM
Hi Rod_C,

<IfModule mod_rewrite.c>

## enable rewrites
   
Options +FollowSymLinks
   RewriteEngine on

## Rewrite to subfolder magento
   
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.cxm$
   
RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond 
%{REQUEST_FILENAME} !-d
   RewriteRule 
^(.*)$ /magento/$1
   RewriteCond 
%{HTTP_HOST} ^(www.)?mydomain.cxm$
   
RewriteRule ^(/)?$ magento[L]

## All other rewrite rules apply to magento folder
   
RewriteBase /magento/

## workaround for HTTP authorization in CGI environment
    
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

## always send 404 on missing files in these folders
    
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

## never rewrite for existing files, directories and links
    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteCond 
%{REQUEST_FILENAME} !-l

## never rewrite for URI beginning with admin
    
RewriteCond %{REQUEST_URI} !^/admin.*

## rewrite everything else to index.php
    
RewriteRule .* index.php

## externally rewrite index.php/admin to admin
    
RewriteCond %{REQUEST_URI} ^/index.php/admin.*$
    
RewriteRule ^index.php/admin(.*) /admin$1 [R]

</IfModule>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Monty22
Guru
 
Avatar
Total Posts:  672
Joined:  2013-01-01
 

Hi,

If you want to access your magento URL without index.php

for example:

http://domain.com/index.php/category to http://domain.com/category

Then follow the steps--

1) Login to admin section by using the URL
http://domain.com/index.php/admin
2) then go to “System >> Configuration >>Web >> Search Engines Optimization”
Use Web Server Rewrites : YES
3) Go to “System >> Configuration >>Web >>Secure”
Use secure URL Frontend: YES
4)Then create the .htaccess file under your the magento installed folder.

If the magento installed under document root ( /home/username/public_html) then add follogig rules into .htaccess file

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

and If the magento installed under /shop or directory then add the following rules into ” /home/username/public_html/shop/.htaccess ” file.

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

Done If you need any kind of help you can contact us as we are one of best Magento extensions developer.

Thanks

Monty
iLoveMage

Get 25% discount all our Magento Extensions.

 Signature 

Get 15% discount on all our extensions Use code MON15 | Risk-free purchase with our 14 days Money Back Guarantee policy!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2