Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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!

 
Magento Community Magento Community
Magento Community
Magento Community
 
clockworkgeek
Sr. Member
 
Avatar
Total Posts:  79
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).

 
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!

 
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-12
 

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

jbova - 20 April 2009 02: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 11:22 AM

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

jbova - 20 April 2009 02: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
 
mostwanted2010
Jr. Member
 
Total Posts:  2
Joined:  2011-10-25
 

After using this solution I am not able to save any setting (Catalog , customer , product every thing), in backend .

Please help me

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jase007
Guru
 
Total Posts:  388
Joined:  2013-11-05
 

Hi,

Have a look this thread for this http://magentowebmaster.blogspot.in/2013/11/magento-admin-url-rewrite-set.html

Hope this will help you!!

Thanks

iLoveMage

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