locked
Redirection to new domain but keeping the rest url same - split post RRS feed

  • Question

  • User-851246726 posted

    I placed the same webconfig code on another old domain but same problem: www.olddomain2.com works without any problem

    http://olddomain2.com gives error:

    Server Error

    <fieldset>

    403 - Forbidden: Access is denied.

    You do not have permission to view this directory or page using the credentials that you supplied.

    </fieldset>
    Tuesday, October 29, 2013 1:07 PM

Answers

  • User-851246726 posted

    Thanks for getting back to me, yes I understand that it was a thought and I appreciate all your time. I have fixed the problem for now. It was a little time consuming but for the main pages, I created folders on the root directory and set a forward request  for each folder to new domain location. like www.olddomain.com/contact to www.newsite.com/contact

    So basically, I created a folder on root directory. It is a temp fix but it is working so far.

    Thanks again for your help.

    I have sent you a PM

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 5, 2013 3:27 PM

All replies

  • User-718146471 posted

    That is an IIS error meaning the anonymous web user has no permissions to access the directory. It could also mean that you don't have a default document set.

    Tuesday, October 29, 2013 12:40 PM
  • User-851246726 posted

    How to solve  this problem ? My domain is hosted on one of the hosting company's account like godaddy.

    Tuesday, October 29, 2013 1:07 PM
  • User-851246726 posted

    Here is the screenshot of IIS setting on my control panel

    Image and video hosting by TinyPic

    Tuesday, October 29, 2013 1:18 PM
  • User-718146471 posted

    Copied from post on other thread:

     

    Here is the screenshot of IIS setting on my control panel

    Image and video hosting by TinyPic

    Tuesday, October 29, 2013 1:25 PM
  • User-851246726 posted

    I just had a conversation with the tech support of hosting account and they are saying there is no way to setup folder permissions. Is  there any alternative via webconfig to setup the permissions or no ?

    IIS is configured fine as  the old domain is working with www.olddomain2.com but it is not working without www.

    any way to control this problem via webconfig ?

    Tuesday, October 29, 2013 1:37 PM
  • User-718146471 posted

    That is your DNS configuration which is something they need to assist you with. You probably need to have them create a CNAME in DNS that points to the domain with nothing.

    Tuesday, October 29, 2013 1:59 PM
  • User-851246726 posted

    could you please explain what exactly I need to ask them to do ? what do you mean by nothing ? what if they say value is required or something like that ? what exactly I should tell them that I am trying to do ?

    Tuesday, October 29, 2013 2:05 PM
  • User-851246726 posted

    FYI: This is how my CNAME settings looks like - what do I need to do ? what value to put in which ? to ? or from ?

    Image and video hosting by TinyPic

    Tuesday, October 29, 2013 2:24 PM
  • User-718146471 posted

    Jeff, who is your host? Is it GoDaddy or someone else??? For example, I'm with Arvixe. The DNS Zone Editor looks kind of like this:

    Name

    Type

    Data

     

    NS

    ns1.plumeria.arvixe.com  

     

    NS

    ns2.plumeria.arvixe.com  

    cp

    A

    198.252.75.86

    *

    A

    198.252.77.1

    www

    A

    198.252.77.1

     

    A

    198.252.77.1

    mail

    A

    198.252.77.2

    mail2

    A

    198.252.75.86

     

    MX

    [10], mail.domain.com  

     

    MX

    [21], mail2.domain.com  

    You may be missing a * name record. Obviously you have a www name record.

    Wednesday, October 30, 2013 10:11 AM
  • User-851246726 posted

    My hosting account is on Register.com

    They have different setting like CNAME and AAAA settings like this:

    In the CNAME settings, I have like this:

    (the black shaded is my domain.com)



    The AAAA setting is like this:

    (the black shaded is my domain.com) and I.P address is same in both boxes as shown in pic below


    As you can see. a record with (*) and (BLANK) is already there in the AAAA setting - what else I need ?

    Wednesday, October 30, 2013 3:29 PM
  • User-718146471 posted

    What about your A records? Remember that the internet still uses IPv4 addresses.

    Thursday, October 31, 2013 7:24 AM
  • User-851246726 posted

    The above screenshot which I called "AAAA" is actually A Record screenshot. (sorry for the confusion).

    But as we can see,  the settings with "*" and"blank" is already there in A record, what  should I do from here ?

    Thursday, October 31, 2013 8:12 AM
  • User-718146471 posted

    No, the AAAA records is the IPv6 records, not the IPv4 which is like xxx.xxx.xxx.xxx. IPv6 is generally much longer but with DNS you have to have both regardless or you wind up in this situation most times. Can you just check the A table please?

    Thursday, October 31, 2013 8:26 AM
  • User-851246726 posted

    In relation to the A Record screenshot above: I just checked my A records and it in in this format:

    [ *  ].mydomain.com points to [ xxx.xx.xxx.x ]

    [    ].mydomain.com points to [ xxx.xx.xxx.x ]

    Th I.P Address is in exactly this format: xxx.xx.xxx.x like 123.12.123.1

    I also checked AAAA record and it is blank - nothing is there - it is like like:

    Thursday, October 31, 2013 8:41 AM
  • User-718146471 posted

    Jeff, email me at my personal email address:

    bbcompent1 at hotmail dot com, have some questions to ask you.

    Thursday, October 31, 2013 12:47 PM
  • User-1853252149 posted

    Using SSL?  Certificate assigned to www.domain.tld and not domain.tld?

    Jeff

    Friday, November 1, 2013 9:24 AM
  • User-718146471 posted

    That was one of the questions I was going to ask him :-)

    Friday, November 1, 2013 12:53 PM
  • User-718146471 posted

    I think and so does the previous poster that you probably will require a multi-domain or * SSL certificate to handle this if you are trying to use SSL. These single domain certs only SSL one domain combination. Remember, with those, domain.com is not the same as www.domain.com because www is a common name. 

    Monday, November 4, 2013 9:30 AM
  • User-851246726 posted

    There is no SSL involved here ? I never mentioned anything regarding SSL in my posts.

    My question is simply about the situation in which I have moved the site from www.domain.com to www.newsite.com

    Now I want to redirect from old domain to new domain programically via webconfig along with keeping the old urls active like

    Example: Clicking on www.domain.com/company/profile.asp.x would automatically redirect visitors to the same page on your new website www.newsite.com/company/profile.asp.x 

    The code that I have posted above, I have that webconfig in my root directory on the hosting account server of old domain and it is redirecting all the traffic from old domain to new domain.

    Problem / Issue: The only problem is that, if anyone type old domain name without "www", then it gives server error and traffic is not redirected in that case even tho my webconfig includes  the code to handle that situation ?

    Tuesday, November 5, 2013 1:39 PM
  • User-718146471 posted

    Well it was a thought anyway. So your site is plain old http domain.com, www.domain.com is working but domain.com is not. What is the actual domain name Jeff? I want to try doing a DNS dig to see why www works but the non-www doesn't.

    Tuesday, November 5, 2013 2:00 PM
  • User-851246726 posted

    Thanks for getting back to me, yes I understand that it was a thought and I appreciate all your time. I have fixed the problem for now. It was a little time consuming but for the main pages, I created folders on the root directory and set a forward request  for each folder to new domain location. like www.olddomain.com/contact to www.newsite.com/contact

    So basically, I created a folder on root directory. It is a temp fix but it is working so far.

    Thanks again for your help.

    I have sent you a PM

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 5, 2013 3:27 PM