x1nick Posted August 28, 2009 Share Posted August 28, 2009 I currently have the following in my file RewriteEngine On RewriteRule ^(index.php.*) $1 [L] RewriteRule ^(.*\..+)$ $1 [L] RewriteRule ^(.*)$ index.php?link_uri=$1 [L] How this is working perfectly for my search engine friendly url's But I cant access my admin. To do this I need to access domain.com/?cms What rewrite rule can I put into the .htaccess file to accommodate for this? and basically ignore my last rewrite rule if user has requested ./?cms Quote Link to comment https://forums.phpfreaks.com/topic/172300-htaccess-rewrite-rule/ Share on other sites More sharing options...
x1nick Posted August 28, 2009 Author Share Posted August 28, 2009 Could this please be moved in the mod rewrite folder, didnt see that when posting Can't get this to work how I want at all. So if ?cms is supplied. Ignore all other rewrite rules. and pass on ?cms&var=1 etc If not supplied do: RewriteRule ^(index.php.*) $1 [L] RewriteRule ^(.*\..+)$ $1 [L] RewriteRule ^(.*)$ index.php?link_uri=$1 [L] As that seems to work fine Quote Link to comment https://forums.phpfreaks.com/topic/172300-htaccess-rewrite-rule/#findComment-908460 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.