Jump to content

urlrewrite errors location


hamza

Recommended Posts

i have page name 1.php which contain this anchor <a href="seepagenumber-1-2.html">redirect</a>

1 this mean in anchor that i am redirect to google

 

page name 2.php

switch ($_GET['v']) {

case '1':

header('Location: www.google.com');

break;

 

case '2':

header('Location: www.hotmail.com');

break;

 

default:

break;

}

my rewrite rules is

Options +FollowSymLinks

RewriteEngine on

RewritRule ^seepagenumber-(.*)-2.html$ 2.php?v=$1

 

this is not working plz help me

 

The easiest way to debug is normally to add the [R] flag so that the URL actually get's redirected so you can see in the browser what address it's actually looking at.

 

RewritRule ^seepagenumber-(.*)-2.html$ 2.php?v=$1 [R]

 

You may be having problems if your using Chrome (or potentially other browsers) with caching, I've generally found Firefox the best browser to avoid caching issues.

Archived

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

×
×
  • 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.