|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Editing .htaccess, 301 redirect link with variables
I want to redirect an old page (http://www.website.com/page.php?id=47) to a new page (http://www.website.com/redirectpage/). For some reason the code I used does not work. My rewrite engine does work, because other RewriteRules work correctly.
What can I do to fix this problem? PHP Code:
__________________
People who get a raise because of their good work have been underpayed for quite some time. |
|
#2
|
|||
|
|||
|
It's not working because you are setting the variable on the url you want to mask and not the main url that is shown to the user.
Try - PHP Code:
So if you entered in yoursite.com/p-47 it would be the same as entering in yoursite.com/page.php?id=47 That is assuming that the .htaccess file is in the root directory. Jaz |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > Editing .htaccess, 301 redirect link with variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|