apache redirect
hi can some one please help me with redirecting i have tried but still not working
i want to redirect www.example.com/?id=1234 to www.example.com |
Did u tried the rewrite rule. May be this link will help u.
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html |
yes i tried
RewriteCond %{REQUEST_URI} ^www\.example\.com$ RewriteRule ^/\?id\=(\d+) http://www.example.com/$1 [L,R=301] didnt work and i tried RewriteCond %{REQUEST_URI} /www.example\.com$ RewriteCond %{QUERY_STRING} ^id=[^&]+ RewriteRule http://www.example.com/$1 [L,R=301] |
|
All times are GMT -5. The time now is 11:51 PM. |