DotDragnet
May 21, 2012, 06:44:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: .htaccess working?  (Read 2191 times)
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« on: January 09, 2008, 03:52:44 PM »

I want to direct a site from one domain to another .co.uk to a .com

I've got an .htaccess file with the following:

Redirect 301 / http://www.bloomsofbressingham.co.uk/

It's uploaded successfully, but has no effect. There is nothing else in the file. What could I have missed?
Logged

suedenem
Sr. Member
****
Posts: 409



View Profile Awards
« Reply #1 on: January 09, 2008, 04:15:59 PM »

.htaccess is an apache thing - looks like this site is running on IIS:

http://toolbar.netcraft.com/site_report?url=http://www.bloomsofbressingham.co.uk

You'll have to go through the site config to set up redirects, etc.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #2 on: January 09, 2008, 04:31:05 PM »

hmmm the .co.uk site is asp but the .com site is php.
« Last Edit: January 09, 2008, 04:33:57 PM by Jeep Stone » Logged

suedenem
Sr. Member
****
Posts: 409



View Profile Awards
« Reply #3 on: January 09, 2008, 04:42:19 PM »

Don't forget that PHP can run perfectly well on IIS and ASP (of sorts) can run on Apache (albeit as ChilliASP, buggy as hell and infuriatingly slow).

Don't always assume Apache is running just because PHP is installed.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #4 on: January 09, 2008, 05:25:05 PM »

Nah, it's def an Apache server smile

I've done a redirect from 123reg, but it supposedly takes 24 as they do it via DNS.

Logged

AndrewShanklin
Newbie
*
Posts: 23



View Profile Awards
« Reply #5 on: January 09, 2008, 06:17:03 PM »

Jeep, you are right it is an Apache server....

If you have access to it, you need to open up your server httpd.conf file and enable the use of .htaccess files.

Then save the file and restart the server to allow the changes to take affect.

If this is a shared server and you are not the administrator you will need to contact your hosting company and ask them to do it.

Andy.
Logged
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #6 on: January 10, 2008, 09:48:14 AM »

This is a dedicated server with Fasthosts Sad

I'll have a dig around on the server for it.

Edit: Looks like Fasthosts don't support .htaccess for anything other than security. How ironic and also utterly useless.
« Last Edit: January 10, 2008, 10:08:52 AM by Jeep Stone » Logged

AndrewShanklin
Newbie
*
Posts: 23



View Profile Awards
« Reply #7 on: January 10, 2008, 10:48:14 AM »

It should be located:

/etc/httpd/conf/httpd.conf

If they dont support .htaccess for anything other than security (which sounds odd)...

You can setup a 301 redirect in the httpd.conf file.

Andy.
Logged
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #8 on: January 10, 2008, 01:11:25 PM »

I've had confirmation that they DO support it, but they have no idea why it's not working. Thanks Andrew, I'll take a butcher's at that.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!