Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- redirect from one folder to another not working


starchild - 2:04 pm on Jul 1, 2011 (gmt 0)


Hi,

I know this sounds like such a simple question, but nothing I've tried actually works.

All I want to do is redirect say

www.domain.com/folder1/name/id/1 to www.domain.com/folder2/name/id/1

The rule should redirect all pages within folder1, to folder2


Closest I get is:

RewriteCond %{REQUEST_URI} ^/folder1/*
RewriteRule ^(.*)$ [domain.com...] [R=301,L,NC]

...but it ends up like /folder1/folder2/#*$!#*$! instead.

What am I doing wrong please?


Thread source:: http://www.webmasterworld.com/apache/4333622.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com