View Single Post

  #1 (permalink)  
Old 22-07-2008, 02:33 PM
WoodenToys.ie WoodenToys.ie is offline
Frontpage User
 
Join Date: Jul 2008
Posts: 9
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
WoodenToys.ie will become famous soon enough
Default .htaccess rewrite rule

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
Reply With Quote