WoodenToys.ie
New Member
Hi folks,
I'm moving a component of a website from a subfolder into the root.
So www.mysite.com/subfolder/page1.html
becomes
www.mysite.com/page1.html
However, I want the old links to continue working (becuase Google has indexed them, among other reasons).
What should the rewrite rule look like?
I've tried the following:
RewriteRule ^subfolder/(.*)$ $1
This works on my localhost installation, but not on my web host installation. Other rewrite rules are working fine.
Any ideas?
Thanks in advance
I'm moving a component of a website from a subfolder into the root.
So www.mysite.com/subfolder/page1.html
becomes
www.mysite.com/page1.html
However, I want the old links to continue working (becuase Google has indexed them, among other reasons).
What should the rewrite rule look like?
I've tried the following:
RewriteRule ^subfolder/(.*)$ $1
This works on my localhost installation, but not on my web host installation. Other rewrite rules are working fine.
Any ideas?
Thanks in advance