Problem pointing subdomain to domain

Richard G

Verified User
Joined
Jul 6, 2008
Messages
12,563
Location
Maastricht
A customer has a domain called forum.somedomain.com but want's to change this to http://www.somedomain.com/forum and not use the subdomain link anymore.
So we deleted the subdomain, but without removing the files. This way the directory /forum stays in tact, but the subdomain dissapears.

Now I searched the forums but could not find a good solution.
Every solution is giving "apache is functioning normally".

So I thought maybe it was because of the removal of the subdomain. I created forum.somedomain.com as a domain for the user.
Then I created a redirect from within DA from http://forum.somedomain.com/ to site http://www.somedomain.com
I want it pointed to the root of this somedomain.com domain, because there will be a notice and a redirect there, which is working properly.

Still I get the "apache is functioning normally".

What am I doing wrong? How can this be fixed?
 
Last edited:
It looks like its working due to the 302, but it does not do the correct redirect:
Code:
[15/Oct/2017:01:36:14 +0200] "GET /viewforum.php?f=33 HTTP/1.1" 302 427 "-" "Mozilla/5.0 (compatible; AhrefsBot/5.2; +http://ahrefs.com/robot/)"
 
Never mind.

Fixed it by changing the 302 redirect to a 301 and then it worked. It also worked when changed to 303.

However, it should also work when a 302 is being used, is this a bug?
 
Back
Top