Jump to content

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


tiki

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?

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.