Jump to content


This topic is now archived and is closed to further replies.


unncessary redirect, and i dono y, help please!!!

Recommended Posts

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?

Share this post

Link to post
Share on other sites
Guest footballkid4

First of all, this:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-f


Should be, this:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.