Admin navigation getting destroyed by rewrite ?!?!

Just did a fresh install of 2.1.1 on the server where the finished cart will eventually reside.

Then I setup the seo rewrites for the frontend which work fine, but now the admin navigation does not work.



All of the links in the admin nav have had admin.php?dispatch= removed from the url.



So for example, under the Administration tab, the Settings link should be :

[COLOR=“Blue”]www.mydomain.com/admin.php?dispatch=settings.manage[/COLOR]

but instead is only :

[COLOR=“Blue”]www.mydomain.com/settings.manage[/COLOR]



likewise, the Catalog > Products link should be :

[COLOR=“Blue”]www.mydomain.com/admin.php?dispatch=products.manage[/COLOR]

but has been reduced to

[COLOR=“Blue”]www.mydomain.com/products.manage[/COLOR]



The same goes for every single link within the admin section, except for the link to the dashboard, which suddenly adds the admin.php back into the link’s url.



It looks like the system is trying to adjust the urls for the sake of mod_rewrite, which doesn’t make any sense.



here’s my htaccess:


DirectoryIndex index.html index.php

RewriteEngine on
RewriteBase /~workboot/buy/
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.*
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteRule . index.php?sef_rewrite=1 [L,QSA]




and here’s my httpd.ini file:


[ISAPI_Rewrite]
#UriMatchPrefix /
#UriFormatPrefix /
RewriteRule /catalog/(.*)? /catalog/$1 [L]
RewriteRule /addons/(.*) /addons/$1 [L]
RewriteRule /lib/(.*) /lib/$1 [L]
RewriteRule /js/(.*) /js/$1 [L]
RewriteRule /skins/(.*) /skins/$1 [L]
RewriteRule /install/(.*) /install/$1 [L]
RewriteRule /payments/(.*) /payments/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
RewriteRule /index\.php(.*) /index.php$1 [L]
RewriteRule /admin\.php(.*) /admin.php$1 [L]
RewriteRule (.*?)(\?(.*))? /index.php?sef_rewrite=1&$3 [L]




PLEASE REMEMBER

all links and SEO rewrites for the frontend of the site work perfectly



As far as I know, the backend was working correctly, then I started touching up some css for the frontend, then logged back into the backend only to find it not working.



Any ideas from the wise?



Any help is greatly appreciated.



Thanks.

Additional observation:



If I clear my cache then point my browser at :

[COLOR=“Blue”]www.mydomain.com/admin.php[/COLOR]

if properly redirects to:

[COLOR=“Blue”]www.mydomain.com/admin.php?dispatch=auth.login_form&return_url=admin.php[/COLOR]



After logging in I am correctly taken to the dashboard at:

[COLOR=“Blue”]www.mydomain.com/admin.php[/COLOR]



but then the rest of the admin links are still all missing [COLOR=“Blue”]admin.php?dispatch=[/COLOR], and clicking on any of those links leads to a 404 error. But if I then manually add the [COLOR=“Blue”]admin.php?dispatch=[/COLOR] back into the url, I can access that admin page properly as if nothing were wrong.



So the admin navigation is simply being constructed incorrectly.



Any ideas as to why ?



Or better yet, anybody know how I can correct this ?



Thanks.

SEO and/or .htaccess does not affect admin.



It sounds like you have a corrupt/misedited file.? Did you rename the admin.php and make adjustments to config.local.php?

[QUOTE]SEO and/or .htaccess does not affect admin.[/QUOTE]

ya, that’s kinda what I was alluding to when I said “It looks like the system is trying to adjust the urls for the sake of mod_rewrite, which doesn’t make any sense.” I guess I should have ellaborated more.


[QUOTE]It sounds like you have a corrupt/misedited file.? Did you rename the admin.php and make adjustments to config.local.php?[/QUOTE]

the settings in config.local.php are correct. Remember that I can manually add “admin.php?dispatch=” into the incorrect url’s (after they come up as 404’s) and get to the right page. It’s just that the admin navigation is incorrectly writing the url’s in the admin menu.



Click on a link > get a 404.

Add “admin.php?dispatch=” into the url > get the page.



I’m probably just going to purge the server and start over from scratch, and then pay more attention to the changes I make to see when the problem occurs. As far as I remember, everything was fine, then I started working on some CSS for the frontend, and then the backend stopped working. My text editor only had a couple of CSS files open, so I was completely at a loss as to how I mucked up the admin.



Thanks for your help Tool (doesn’t sound right saying that).