cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect talkurbex.co.uk to www.talkurbex.co.uk

sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Redirect talkurbex.co.uk to www.talkurbex.co.uk

Hi,
As the title suggest - if I visit talkurbex.co.uk I get a directory structure - how can I redirect http://talkurbex.co.uk to go to http://www.talkurbex.co.uk please?
Thanks and regards
8 REPLIES 8
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

I think you need to look at the DNS settings for the domain. Without www is pointing to homepages and with www is pointing to ccgi.
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

Hi jelv
I have only 1 custom setting in Domain DNS - which points www. to my ccgi space. I presume I need to add another on or enter something into the .htaccess?
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

I just added the following to the .htaccess file
RewriteEngine on
rewritecond %{http_host} ^talkurbex.co.uk [nc]
rewriterule ^(.*)$ http://www.talkurbex.co.uk/$1 [r=301,nc]
Howver it does not work, does PN support rewriteengine?
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

The htaccess file on which server?
Along the KISS lines - could you not upload an index.html file to homepages that does the redirect?
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

Quote
I wish to have this domain hosted automatically under my webspace
Directory/htdocs/

If the above is selected in the domain setup, I presume that talkurbex.co.uk would then default to the ftp space? 
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

So http://talkurbex.co.uk redirects to my FTP space under HT-DOCS - thinking about what you said Jelv so I just created a quick index.html with the following in it
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Talk|Urbex - Exploring decaying abandoned architecture…</title>
<meta http-equiv="REFRESH" content="0;url=http://www.talkurbex.co.uk"></HEAD>
<BODY>
Redirecting you right now :).
</BODY>
</HTML>

Works totally fine Smiley
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

Normally you would create a subdirectory under htdocs for the domain and select that for the hosting. That way you can have multiple domains with different content under the same account. As it is you have the webspace used by your username and your domain pointing to the same place.
Try visiting http://www.sophos9.plus.com/ to see what I mean.
This may or may not be what you want!
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
sophos9
Grafter
Posts: 760
Registered: ‎12-09-2007

Re: Redirect talkurbex.co.uk to www.talkurbex.co.uk

Hi Jelv, good point - its fine for what I need however thats by luck rather than judgement Smiley