Important Notice:
Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
<<snip>>
I'm creating my first reseller account. I want the domain to redirect to www. I'm using a .htaccess file with code I found in the HostNine Knowledge Base! (apparently out of date now!) I've opened up notepad and pasted in the following code: RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain\.org.uk RewriteRule ^(.*)$ http://www.mydomain.org.uk/$1 [R=permanent,L] I'm getting an error message in firefox: "This 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" |
|
#2
|
|||
|
|||
|
Yes I agree the knowledge base is outdated,
to re-direct you need to go to Cpanel, Domains, Redirect, you can use Http://, www. or just the domain, when you have completed the task the htaccess will be updated, hope this helps JE |
|
#3
|
|||
|
|||
|
RewriteEngine On
Options +FollowSymLinks RewriteCond %{HTTP_HOST} !^www\. RewriteRule (.*) http://www.mydomain.org.uk/$1 [R=301,L] - that should do it for you (hopefully). |
|
#4
|
|||
|
|||
|
Now I'm getting the following error message:
Internal Server Error 500 The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@avatartoys.org.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. It's nothing to do with the way I'm creating the .htaccess file is it? I'm using a macbook pro and I've creating the document in textedit. Then saving it out as .html file then I rename it to .htaccess and upload it. |
|
#5
|
|||
|
|||
|
Ummm, best to just edit it in notepad or whatever the equivalent is on a Mac.
You've obviously changed mydomain to whatever your domain is right (I'm guessing avatartoys)? Make sure there are no erroneous line spaces at the end of the file (as in there are no returns at the bottom of the page). Is there anything else in your .htaccess apart from the lines above? |
|
#6
|
|||
|
|||
|
Quote:
Once you edit your WP Setup to www.yourdomain.com and the .htaccess file you're good to go. |
|
#7
|
|||
|
|||
|
When you say "Once you edit your WP setup" where exactly do you mean. What wordpress file requires me to edit it?
Cheers Adam |
![]() |
| Tags |
| .htaccess, redirect to www |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble with htaccess/mod_rewrite | OMT | Shared Web Hosting | 2 | 06-09-2009 02:24 PM |
| Php.ini instead of .htaccess | redlogic | Reseller Hosting | 2 | 03-12-2008 11:24 AM |
| .htaccess to php.ini ??? | redlogic | Reseller Hosting | 1 | 01-16-2008 10:02 PM |
| .htaccess | ronin | Shared Web Hosting | 5 | 05-20-2007 08:17 PM |






Linear Mode

