Jump to content


Photo

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


  • Please log in to reply
4 replies to this topic

#1 tiki

tiki
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 19 November 2005 - 01:23 AM

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?

#2 tiki

tiki
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 19 November 2005 - 07:43 AM

Help please :)

#3 tiki

tiki
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 19 November 2005 - 11:57 PM

Bump!

#4 Guest_footballkid4_*

Guest_footballkid4_*
  • Guests

Posted 23 November 2005 - 06:19 PM

First of all, this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f

Should be, this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#5 tiki

tiki
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 27 November 2005 - 09:53 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users