![]() |
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. :) |
|
bump bump:)
|
thats not very search engine friendly
|
Quote:
|
Quote:
|
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] |
All times are GMT -7. The time now is 06:52 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc