I need to redirect some pages. I want to add PHP to a product page to redirect to a different page. How do I do this?
I need to redirect some pages. I want to add PHP to a product page to redirect to a different page. How do I do this?
I am overhauling my website and changing to Wordpress. Each current product page needs to be redirected to the new page to maintain SEO.
Why not use something like this in your .htaccess...
Im using this to redirect the new products page (which is part of an index.php string) to a completely different page.
So even though, every page has the root page of index.php, its only redirecting the ones with certain strings, which of course you could do with individual product pages.
RewriteEngine On
RewriteCond %{QUERY_STRING} ^main_page=products_new$ [NC]
RewriteRule index.php http://www.mysite.com/index.php?main...index&cPath=77
Will rewrite in htaccess do same as Redirect 301 from SEO purposes? I do not know htacess commands. What would the structure be for:
rootdirectory/oldfile to rootdirectory/subdirectory/newfilename