tiki Posted November 19, 2005 Share Posted November 19, 2005 Ok so Im using .htaccess for mod_rewrite, heres my code: RewriteEngine on Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^admin/$ admin.php RewriteRule ^admin/([a-z]+)/$ admin.php?page=$1 RewriteRule ^admin/([a-z]+)/([a-z]+)/$ admin.php?page=$1&do=$2 RewriteRule ^popup/$ popup.php RewriteRule ^popup/([a-z]+)/$ popup.php?page=$1 RewriteRule ^([a-z]+)/$ index.php?page=info&view=$1 RewriteRule ^([a-z]+)/$ index.php?page=$1 RewriteRule ^([a-z]+)/([a-z]+)/$ index.php?page=$1&view=$2 RewriteRule ^([a-z]+)/([a-z]+)/([a-z]+)/$ index.php?page=$1&view=$2&func=$3 RewriteRule ^([a-z]+)/([a-z]+)/([a-z]+)/([0-9]+)/$ index.php?page=$1&view=$2&func=$3&id=$4 RewriteRule ^([a-z]+)/([a-z]+)/([0-9]+)/$ index.php?page=$1&view=$2&id=$3 And when I go to www.domain.com/store/ It automatically redirects me to www.domain.com I dono why, the default of the switch does not redirect!?!?! But when I go to www.domain.com/index.php?page=store Then the page works and doesnt redirect, why does it redirect with the previous url? Quote Link to comment https://forums.phpfreaks.com/topic/2894-unncessary-redirect-and-i-dono-y-help-please/ Share on other sites More sharing options...
tiki Posted November 19, 2005 Author Share Posted November 19, 2005 Help please Quote Link to comment https://forums.phpfreaks.com/topic/2894-unncessary-redirect-and-i-dono-y-help-please/#findComment-9732 Share on other sites More sharing options...
tiki Posted November 19, 2005 Author Share Posted November 19, 2005 Bump! Quote Link to comment https://forums.phpfreaks.com/topic/2894-unncessary-redirect-and-i-dono-y-help-please/#findComment-9736 Share on other sites More sharing options...
Guest footballkid4 Posted November 23, 2005 Share Posted November 23, 2005 First of all, this: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f Should be, this: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Quote Link to comment https://forums.phpfreaks.com/topic/2894-unncessary-redirect-and-i-dono-y-help-please/#findComment-9814 Share on other sites More sharing options...
tiki Posted November 27, 2005 Author Share Posted November 27, 2005 I changed it but I still get the problem. When I go to [a href=\"http://www.illicitfashion.com/store/\" target=\"_blank\"]http://www.illicitfashion.com/store/[/a] it redirects to [a href=\"http://www.illicitfashion.com/\" target=\"_blank\"]http://www.illicitfashion.com/[/a] But when I go to [a href=\"http://www.illicitfashion.com/index.php?page=store\" target=\"_blank\"]http://www.illicitfashion.com/index.php?page=store[/a] it does not redirect. Quote Link to comment https://forums.phpfreaks.com/topic/2894-unncessary-redirect-and-i-dono-y-help-please/#findComment-9905 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.