Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: DNS & domain forwarding

  1. #1
    yogastella is offline Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Default DNS & domain forwarding

    Hi,

    I would like to forward all visitors of my altervista page to a new site I created.

    What is the correct procedure to do so?

    At the following link I found general infos, but I am unable to activate the DNS & Domain forwarding.

    https://it.altervista.org/wiki/index...ain_forwarding

    Thanks in advance for your support!

  2. #2
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Quote Originally Posted by yogastella View Post
    At the following link I found general infos, but I am unable to activate the DNS & Domain forwarding.
    You can use that only if you bought a domain with us.
    However the best way to setup a redirect is to use a .htaccess file, if you search a bit you'll find a lot of examples.

  3. #3
    yogastella is offline Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Default

    The fact is that I bought a domain with you!

    Can you give me more specific directions in my case??

    Much appreciated!

  4. #4
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Which option have you bought? The DNS settings are not available with the first one.

  5. #5
    yogastella is offline Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Default

    Quote Originally Posted by karl94 View Post
    Which option have you bought? The DNS settings are not available with the first one.
    I have bought the 9 euros packet and I seem to have access to the DNS settings. However, I am not literate enough to be able to redirect visitors onto my new page.

    To be honest, I tried using a .htaccess file and it works but only partially. Currently all visitors who try accessing my index page are forwarded to the new page.
    However, if from Google a random page of my altervista website is accessed, the re-direct does not work.

    Basically, my forwarding command works only on the index page but not on the sub-pages.

    Do you know where I am going wrong?

    Thanks!

  6. #6
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Quote Originally Posted by yogastella View Post
    I have bought the 9 euros packet and I seem to have access to the DNS settings. However, I am not literate enough to be able to redirect visitors onto my new page.
    You just need to setup the domain in order to redirect the users to the new address. Also, depending on the service you are moving to, you could also make the DNS point directly to your new server. You should ask to the new provider about that.
    Quote Originally Posted by yogastella View Post

    To be honest, I tried using a .htaccess file and it works but only partially. Currently all visitors who try accessing my index page are forwarded to the new page.
    However, if from Google a random page of my altervista website is accessed, the re-direct does not work.

    Basically, my forwarding command works only on the index page but not on the sub-pages.

    Do you know where I am going wrong?
    Could you please post here the content of the .htaccess file?

  7. #7
    yogastella is offline Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Default

    Quote Originally Posted by karl94 View Post
    Could you please post here the content of the .htaccess file?
    Currently this the code I entered in the .htaccess file:

    "Redirect permanent /index.html http://www.yogastella.org/
    Redirect 301 /index.html http://www.yogastella.org/"

    (I am trying to redirect all visitors to the URL http://www.yogastella.org/ )

    How can I change it to apply also to all sub-directories?

    Thanks a lot!

  8. #8
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    This should work:
    Code:
    RewriteEngine on
    RewriteRule ^(.*)$ http://www.yogastella.org/$1 [L,R=301]
    Replace the entire content.
    Last edited by karl94; 05-12-2015 at 02:06 AM.

  9. #9
    yogastella is offline Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Default

    Hi Karl,

    thanks for your reply. It still does not work though.

    I now get an error saying (I have tried attaching a screenshot but I seem to be unable to upload here):

    "This web page is not available
    ERR_CONNECTION_REFUSED

    Google Chrome's connection attempt to 127.0.0.1 was rejected. The website may be down or your network may not be properly configured.
    Check your Internet connection
    Check any cables and reboot any routers, modems or other network devices you may be using.
    Allow Chrome to access the network in your firewall or antivirus settings.
    If it is already listed as a programme that is allowed to access the network, try removing it from the list and adding it again.
    If you use a proxy server...
    Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chrome menu > Settings > + Show advanced settings > Change proxy settings... > LAN Settings and deselect "Use a proxy server for your LAN"."

    The same happens if I use the browser of my phone or even tablet.

    I now restored the .htaccess file to what it was before entering your code, so at least tomorrow I'll get some of the visitors redirected on the new website.

    Did I go wrong somewhere?

    Thanks

  10. #10
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    My bad, I gave you the wrong code. Try it now.
    Code:
    RewriteEngine on
    RewriteRule ^(.*)$ http://www.yogastella.org/$1 [L,R=301]

Page 1 of 2 12 LastLast

Posting Permissions

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

SEO by vBSEO