HighDots Forums  

301 question

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss 301 question in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Gobbling Goblin
 
Posts: n/a

Default 301 question - 11-30-2007 , 08:00 PM






Hi all

I have a damn 301 problem which is really starting to piss me off.
I have just purchased two sites for someone. I shall call these
exampleexample.com and example-example.com

The owner wants to have all traffic point to the example-example.com
but with www.

I have tried 301 the exampleexample.com to point to
www.example-example.com but nothing happened.

I have tried 301 the example-example.com to point to
www.example-example.com and nothing happened.

Even went into my "manage domains" on godaddy and tried a 301 from
there too. Nothing.

Also, how can I tell if my Apache Mod-Rewrite moduled is enabled ?

Thanks all
plh
Paul
--
http://www.crystalbuffalo.com/items/books-fact-09.html
http://www.crystalbuffalo.com/items/books-fact2-06.html
http://www.crystalbuffalo.com/items/books-fact3-03.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Reply With Quote
  #2  
Old   
John Bokma
 
Posts: n/a

Default Re: 301 question - 11-30-2007 , 08:25 PM






The Gobbling Goblin <customerservices (AT) houstoncrafts (DOT) com> wrote:

Quote:
Hi all

I have a damn 301 problem which is really starting to piss me off.
I have just purchased two sites for someone. I shall call these
exampleexample.com and example-example.com

The owner wants to have all traffic point to the example-example.com
but with www.

I have tried 301 the exampleexample.com to point to
www.example-example.com but nothing happened.

I have tried 301 the example-example.com to point to
www.example-example.com and nothing happened.

Even went into my "manage domains" on godaddy and tried a 301 from
there too. Nothing.

Also, how can I tell if my Apache Mod-Rewrite moduled is enabled ?
Are you using .htaccess? A simple check to see if .htaccess is read by
Apache is to type some garbage in the file and upload it.

(ASASASASHH will do)

If you get a 500 server error, you can be sure that .htaccess is read.

I have no idea if you get a 500 error as well if you forgot to enable the
rewrite engine.

<http://johnbokma.com/mexit/2004/04/12/rewritingurlsforgoogle.html>
shows the www to non-www example.

Change !^castleamber\.com$ to !^www\.castleamber\.com$
and http://castleamber.com/$1 to http://www.castleamber.com/$1

to do the reverse.


--
John Bokma http://johnbokma.com/


Reply With Quote
  #3  
Old   
The Gobbling Goblin
 
Posts: n/a

Default Re: 301 question - 11-30-2007 , 08:26 PM



On Sat, 01 Dec 2007 01:00:00 +0000, The Gobbling Goblin
<customerservices (AT) houstoncrafts (DOT) com> wrote:

Quote:
Hi all

I have a damn 301 problem which is really starting to piss me off.
I have just purchased two sites for someone. I shall call these
exampleexample.com and example-example.com

The owner wants to have all traffic point to the example-example.com
but with www.

I have tried 301 the exampleexample.com to point to
www.example-example.com but nothing happened.

I have tried 301 the example-example.com to point to
www.example-example.com and nothing happened.

Even went into my "manage domains" on godaddy and tried a 301 from
there too. Nothing.

Also, how can I tell if my Apache Mod-Rewrite moduled is enabled ?

Thanks all
plh
Paul
Okay, here's an update...

I have now gotten the non hyphenated URL to redirect to the hyphenated
URL.

But when I use the 301 redirect option in cpanel, to redirect the
non-www to www, the website in question just hangs.
I take off the 301 and the website immediately loads. grrrrr

Thanks all.
plh
paul
--
http://www.crystalbuffalo.com/items/books-fact-09.html
http://www.crystalbuffalo.com/items/books-fact2-06.html
http://www.crystalbuffalo.com/items/books-fact3-03.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
  #4  
Old   
The Gobbling Goblin
 
Posts: n/a

Default Re: 301 question - 11-30-2007 , 11:10 PM



On 1 Dec 2007 01:25:58 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote:

[...]

Quote:
Are you using .htaccess? A simple check to see if .htaccess is read by
Apache is to type some garbage in the file and upload it.
Hi John,
After 4.5 hours, 8 diet cokes, 14 fat joints, tons of hairpulling, I
have finally managed it. No thanks to the cpanel .htaccess.

Quote:
(ASASASASHH will do)
eh ? <G>

Quote:
If you get a 500 server error, you can be sure that .htaccess is read.
I did, but that was cos of me trying to point non www to www.
Took it off and it worked.
Found a solution, but had to add it manually cos cpanel is shite at
doing it correctly for you.

Quote:
I have no idea if you get a 500 error as well if you forgot to enable the
rewrite engine.

http://johnbokma.com/mexit/2004/04/1...forgoogle.html
shows the www to non-www example.

Change !^castleamber\.com$ to !^www\.castleamber\.com$
and http://castleamber.com/$1 to http://www.castleamber.com/$1

to do the reverse.
To get mine to work, I had to manually add this code to .htaccess ...

RewriteEngine On
RewriteCond %{HTTP_HOST} ^enlightenment-yorkshire\.org
RewriteRule (.*) http://www.enlightenment-yorkshire.org/$1 [R=301,L]

Thanks for your help John.
Take care
plh
Paul
--
http://www.crystalbuffalo.com/items/books-fact-09.html
http://www.crystalbuffalo.com/items/books-fact2-06.html
http://www.crystalbuffalo.com/items/books-fact3-03.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
  #5  
Old   
John Bokma
 
Posts: n/a

Default Re: 301 question - 11-30-2007 , 11:20 PM



The Gobbling Goblin <customerservices (AT) houstoncrafts (DOT) com> wrote:

Hi Paul,

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^enlightenment-yorkshire\.org
I recommend to use:

RewriteCond %{HTTP_HOST} !^www\.enlightenment-yorkshire\.org$

which basically says: if it's not www.enlightenment-yorkshire.org, then
redirect [1]

Quote:
RewriteRule (.*) http://www.enlightenment-yorkshire.org/$1 [R=301,L]

Thanks for your help John.
Take care
plh
Paul

[1] AFAIK this should work as well, but I am not 100% of the syntax:

RewriteCond %{HTTP_HOST} !=www.enlightenment-yorkshire.org

(see: http://httpd.apache.org/docs/1.3/mod...ml#RewriteCond )

--
John Bokma http://johnbokma.com/


Reply With Quote
Reply




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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.