Hello,
simply we tried use .htaccess redirect dynamic URL to virtual sub domain with same dynamic URL with this code
RewriteCond %{HTTP_HOST} ^mysite\.net [NC]
RewriteCond %{QUERY_STRING} ^link=(.+)$
RewriteRule ^news\.php$ http://news.mysite.net/news.php?link=%1 [L,R=301]
http://mysite.net/news.php?link=97 to http://news.mysite.net/news.php?link=97
need help with 3 things
1-.htaccess code redirect 301 all old links http://mysite.net/news.php?link=97 to http://news.mysite.net/97.html
2-redirect 301 all old links http://mysite.net/news.php?link=97 to http://news.mysite.net/97.html
3-virtual sub domain of http://news.mysite.net has its page not get index page as it happen now
Thanks


Reply With Quote


Bookmarks