FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Redirect Error





Donutey
I bought a domain (donutey.com) and I set up a permanent 301 redirect from donutey.frihost.net to donutey.com using both Cpanel's built in redirect feature and manually editing the .htaccess file, but I end up with the same error every time:

Quote:

The page isn't redirecting properly


Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept cookies.

And the URL looks something like www.donutey.com/donutey/donutey/donutey/donutey... etc... Could this be because the files for the new site are in ../public_html/donutey?... because the redirect works correctly when I point it to a site other than donutey.com.

It's probably something stupid, but my knowledge in this area is pretty low. Mr. Green Thanks in advance.
mathiaus
The .htaccess should look something like below.
Code:
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !^donutey\.frihost.net [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://donutey.com/$1 [L,R=301]
Bondings
The problem is due to the way cPanel handles multiple domains in one account (DA does a better job). What happens is that internally (not visible to the user) your domain is being redirected to your subdomain/donutey/. If you make another redirect yourself (the opposite), it will be caught in a never ending loop, the cause of that error.

A different redirection, like the one mathiaus provided should (if working) solve this problem.
Donutey
I realize I set up the domain as an add on domain, while what I wanted was a parked one. Anyway, I changed that (removing the addon domain, and adding donutey.com as a parked domain) and I also deleted the ../donutey folder.

I made sure I removed my (failed) Cpanel redirects, and I've uploaded the .htaccess file to /public_html, but I still end up with the same error as before, although the URL on the redirected error page is now http://donutey.com/. I've tried the following code:

Code:

RewriteEngine ON
RewriteRule ^(.*)$ http://donutey.com/$1 [R=301,L]


Mathiaus's
Code:

RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !^donutey\.frihost.net [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://donutey.com/$1 [L,R=301]


And
Code:

Redirect 301 / http://donutey.com/


Thanks.
Donutey
Argh, still not working. Could it have something to do with the Frontpage extensions installed on both domains? I don't need them, but I don't how they would interfere with the redirect. I need something like:

If URL=http://www.donutey.frihost.net/* OR http://donutey.frihost.net/*
301 Redirect to http://donutey.com/*

The * being a wildcard.
swizzy
apache is redirecting in an infite loop,

add a maxredirect statement to limit it, use only .htaccess, not cpanel
Donutey
swizzy wrote:
apache is redirecting in an infite loop,

add a maxredirect statement to limit it, use only .htaccess, not cpanel


Apache gives an internal server error when I've tried it. I'd assume it should be set to 1 or 2? 40Frih to the first person who gives working code (a functioning permanent redirect). Mr. Green
zenyuk
I bought a domain name and i have a question: what is the difference between domain forwarding and setting ns servers records?
Animal
zenyuk wrote:
I bought a domain name and i have a question: what is the difference between domain forwarding and setting ns servers records?

Domain forwarding "cloaks" your true web address. If you use a domain name for forwarding, the address of your site will still be (if you have a frihost account) yoursite.frih.net. Using forwarding, search engines will not give users your domain name address in search results, it would be pages from yoursite.frih.net that would be indexed.

If you change the nameservers, you fully integrate the domain name with your webspace, so you can use email addresses @yourdomain.com, and search engines will find pages on your website from yourdomain.com/folder/page.html (for example).

Personally, I would recommend that if you buy a domain name, use the nameservers (DNS settings) rather than a redirect.
mathiaus
@Donutey: Please PM me your password. I have that code (though using my domains obviously) and it works fine. I'll have a little fiddle for you.

@zenyuk: Forward just forwards the domain (domain.com) to your specified url (sub.domain.com). This means your actual URL will show in the address bar. By setting NS servers (or A records) to Frihost, the domains files are accessed directly (no forwarding etc).
Hard to explain sorry. Try a search, others have posted more in depth explanations before.
Related topics
Help: SQL error after uploading new files(thread updated)
.htaccess tutorial
Error 404 ..... How to Hide ...
Free Domain & Redirect Services
fantastico error
Custom error pages using .htaccess
nt set output/error file
Redirect
mysql errors. No error given by mysql_error()
Header redirect problem
how to redirect with PHP
Error Upon Installing phpBB 3.0.2
[help=html,php]Error en forma de contacto...
Error writing to Temp SQL files
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.