Webmaster Forum

Go Back   Webmaster Forum > Marketing Forums > SEO Forum

SEO Forum Search engine optimization discussions.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 12-29-2008, 05:55 AM
hs4e hs4e is offline
Junior Member
 
Join Date: 12-29-08
Posts: 7
iTrader: 0 / 0%
.htaccess redirect on godaddy

Hi guys,

I'm using at least for a while, the linux shared hosting from GoDaddy.
What I need to do, at least temporarily, is redirect my domain to a subdomain of it. What I've already tried was, among other scripts, the classic

Redirect 301 / http://sub.domain.com

I know that because of caching on godaddy servers, new .htaccess files are taken into account only after a (long) while, so yes, I did wait lots for each try.

Now this question comes into my mind: I've read somewhere about physical addresses of directories and their aliases when using shared hosting. Does that mean that, as long as my hosting account is shared, the above script should actually look like either

Redirect 301 /home/content/u/s/e/username/html/ http://sub.domain.com

or

Redirect 301 /home/content/u/s/e/username/html/ /home/content/u/s/e/username/html/sub

(the second providing that sub.domain.com points to domain.com/sub)?

If the above are wrong, what should I use to successfully redirect my domain.com to sub.domain.com (by means of .htaccess)?

Thanks in advance for any help
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 12-29-2008, 06:52 AM
ScriptMan's Avatar
ScriptMan ScriptMan is offline
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 14,038
iTrader: 4 / 100%
Nothing works the same at Godaddy as it does on a real server. That is the primary reason I gave up on their crappy hosting.

I am not even sure you could do what you want to do on a cPanel server. Once you redirect a primary domain name it affects all the domains in the account to some extent.

Maybe if we knew what you are trying to do and why som one could suggest a possible solution.
 
Reply With Quote
  #3  
Old 12-29-2008, 08:24 AM
SmallBusinessSEO SmallBusinessSEO is offline
Contributing Member
 
Join Date: 03-22-08
Location: Ibiza
Posts: 335
iTrader: 0 / 0%
we dont have any problems with this at all, .htaccess works just fine on Godaddy. the first one you used
Quote:
Redirect 301 / http://sub. domain.com (remove gap)
in .htacess in your root folder should work straight away


if not just get onto their help and they'll put you straight.
 
Reply With Quote
  #4  
Old 12-29-2008, 12:20 PM
hs4e hs4e is offline
Junior Member
 
Join Date: 12-29-08
Posts: 7
iTrader: 0 / 0%
@ScriptMan

The domain I've just rented serves a small community, I myself being a part of it. We don't even have a proper website but a forum under forum.cuvantuladevarului.org. I, as the wannabe webmaster of the community ) I thought that at least for a while, until installing a proper website under our domain, I would redirect everything from cuvantuladevarului.org to forum.cuvantuladevarului.org, which I first did with html.

@SmallBusinessSEO

Great to have my post replied to by somebody who successfully used .htaccess with GoDaddy
Now when I use the line above, with or without "RewriteEngine On", I get in Firefox a loop error: "Redirect Loop: Firefox has detected that the server is redirecting the request for this address in a way that will never complete." As soon as I comment out the line with "Redirect...", everything works again (the html redirection takes place).

As for asking GoDaddy about .htaccess scripting, somebody was saying that it is public knowledge that they won't help you in any way in this direction )

Thanks again for any future replies
 
Reply With Quote
  #5  
Old 12-29-2008, 02:02 PM
ScriptMan's Avatar
ScriptMan ScriptMan is offline
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 14,038
iTrader: 4 / 100%
It seems to be working great at the moment. Either name takes me to the forum.

What method are you using right now and why do you want to change?

What language is that? You post in very good English.



PS: GD won't talk about .htaccess because there is a way to use to have more than one domain hosted in their single domain account. I was never smart enough to figure out how AND to have the proper name show in the browser address bar.
 
Reply With Quote
  #6  
Old 12-29-2008, 02:36 PM
hs4e hs4e is offline
Junior Member
 
Join Date: 12-29-08
Posts: 7
iTrader: 0 / 0%
Thanx ScriptMan again,

The job is now done by html means, so no, I didn't manage to fix it yet
I want to use htaccess just for the sake of it. Well, and because I heard is faster and also helps with getting only one of the domains ranked, no matter which one the users use.

As for the language, that's Romanian, my native language.
 
Reply With Quote
  #7  
Old 12-29-2008, 05:58 PM
ScriptMan's Avatar
ScriptMan ScriptMan is offline
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 14,038
iTrader: 4 / 100%
If I were you I would just promote the base domain because if you do put up a site you will link to the forum from that and regular users will adjust quickly to the change.

As long as you do not promote both I do not think you will incurr any SEO penalty. That penalty is somewhat over-stated anyway ( the duplicate content penalty).

Please continue to hang around here. We would enjoy your company.
 
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > SEO Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use htaccess for SSL redirect? jeremynet Coding Forum 1 12-06-2008 11:02 PM
Godaddy .htaccess kwkcae Web Hosting Forum 7 12-09-2007 05:17 AM
.htaccess 301 redirect modine Coding Forum 14 06-12-2007 11:28 AM
htaccess 301 redirect esiason14 Coding Forum 2 01-31-2007 12:44 PM
.htaccess redirect problem..! Immo Coding Forum 16 08-03-2006 04:02 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:12 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC