![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Junior Achiever
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
|
Htaccess Rewrite Help
I'm trying to get a url to rewrite but its not working. I know I'm doing it wrong.
RewriteEngine on RewriteRule ^page?n=(.*)&k=(.*)$ page.php?n=$1&k=$2 [NC] I'm trying to get site.com/page?n=VAR&k=VAR to redirect to page.php?n=VAR&k=VAR. Thanks for your help. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Almost goners..
Industry Role:
Join Date: May 2008
Location: Netherlands
Posts: 11,420
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
|
bump bump
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Junior Achiever
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Junior Achiever
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Junior Achiever
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
|
Here is the correct working code.
RewriteEngine on RewriteCond %{QUERY_STRING} ^(n=.*)$ [NC,OR] RewriteCond %{QUERY_STRING} ^(k=.*)$ [NC] RewriteRule ^page(.*)$ /page.php\?&%{QUERY_STRING} [L] |
![]() |
![]() ![]() ![]() ![]() ![]() |