Results 1 to 4 of 4

Thread: Problem pointing subdomain to domain

  1. #1
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,087

    Problem pointing subdomain to domain

    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 by Richard G; 10-14-2017 at 05:39 PM.
    Greetings, Richard.

  2. #2
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,087
    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/)"
    Greetings, Richard.

  3. #3
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,087
    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?
    Greetings, Richard.

  4. #4
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,087
    Solved it. It's no bug, the 302 is working fine now too.
    Greetings, Richard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •