wesburke
Member
Posted 5 months ago #
Hey guys,
I am thinking of revamping my entire site http://www.cgcookie.com and moving it to a sub domain cg.cgcookie.com to develop it,etc.. My biggest concern is keeping external links current. My site receives a bit of traffic from external links into our articles and I would like to make sure these just don't hit 404's after the move has taken place.
I have read a bit on permalinks, and am currently using the year/month/day/article-name
Any suggestions or are there any articles online to read through while sipping some coffee?
wesburke
Member
Posted 4 months ago #
Hey guys - I was reading a bit more on this, but am I correct to think that I can set up a .htaccess file to redirect all traffic to the subdomain and keep/adjust the path?
Cheers,
W
wesburke
Member
Posted 4 months ago #
Okay I have dug up this code to use and it (from what I read). Will do exactly what I would need. Only issue is that I am getting an "Internal Server Error 500" when I implement it.
Do you see anything off with it?
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^cgcookie.com [NC]
RewriteRule ^(.*)$ http://www.cgcookie.com$1 [L,R=301]
RedirectMatch 301 ^/articles/(.*)$ http://cg.cgcookie.com/$1