Hi Guys, I'm having trouble creating a 301 redirect for the following type of URL: mysite.com/?s=somepage to mysite.com/pages/newpage PHP: It doesn't seem to work for something like: redirect 301 /?s=somepage http://www.mysite.com/pages/newpage PHP: Any help would be appreciated Thanks
Untested but try this with php. <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> Code (markup): Could also do it with .htacess Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] Code (markup): Hope this helps