toplisek
01-06-2010, 08:28 AM
I have coded like:
Options +FollowSymlinks
RewriteEngine On
#
RewriteCond %{QUERY_STRING} ^id=myvatax1$
RewriteRUle ^en-GB/myprofile/index.php?$ http://www.mydomain.com/mypage1.php [R=301,L]
#
RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
Why this does not work as rewrite as it does not redirect to correct landing page like:
http://www.mydomain.com/en-GB/myprof...x.php?myvatax1
Options +FollowSymlinks
RewriteEngine On
#
RewriteCond %{QUERY_STRING} ^id=myvatax1$
RewriteRUle ^en-GB/myprofile/index.php?$ http://www.mydomain.com/mypage1.php [R=301,L]
#
RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
Why this does not work as rewrite as it does not redirect to correct landing page like:
http://www.mydomain.com/en-GB/myprof...x.php?myvatax1