Forum Moderators: phranque

Message Too Old, No Replies

redirect all sub directory urls to new domain

all pages need to more to new domain

         

Lorel

5:30 pm on Oct 12, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How do I permanently remove all files in a sub directory (about 70 pages) to a new domain, i.e., all sub directory files are now the contents of a new domain.

I was using this

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^foldername/$ http://www.example.com/ [R=301,L]

however it didn't move every page so then I entered each page separately.

However all those redirects are slowing down the original site.

Is there something wrong with the original line above that doesn't move all files?

Lorel

7:43 pm on Nov 5, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can someone help me with this?

phranque

4:48 am on Feb 5, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Lorel, did you ever get a solution for this?

Lorel

4:40 pm on Feb 5, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No I didn't, thanks for asking.