Hey guys,
I'm in a bit of a situation. I want to change my rewrite rules for a folder to a subdomain and then redirect old rules to new ones (for SEO).
So basically I have this:
I want to rewrite everything to press.site.com and everything /press/ to press.site.com. After I do this, I want to redirect all old links to the new subdomain links. I tried several methods but I wasn't very successful.
Any help will be greatful!
I'm in a bit of a situation. I want to change my rewrite rules for a folder to a subdomain and then redirect old rules to new ones (for SEO).
So basically I have this:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^news/index([0-9-]+)\.html$ index.php?page=pressrelease_homepage&pn=$1
RewriteRule ^news/$ index.php?page=pressrelease_homepage
RewriteRule ^press/([a-zA-Z0-9-]+)-([0-9-]+)\.html$ index.php?page=pressrelease_page&id=$2
I want to rewrite everything to press.site.com and everything /press/ to press.site.com. After I do this, I want to redirect all old links to the new subdomain links. I tried several methods but I wasn't very successful.
Any help will be greatful!