Jump to content

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.

http://localhost/a/seepagenumber-2-2.html

NOT FOUND ERROR

 

 

Options +FollowSymlinks # for security but be enable

RewriteEngine on

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

 

 

 

2.php

<a href="seepagenumber-2-2.html">redirect</a>

 

 

 

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.