Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 4th Jan 2009, 12:29 PM   #1
charlie
 
Join Date: 2008
Location: united kingdom
Posts: 78
Thanks: 0
Thanked 3 Times in 3 Posts
Default
301 direct
Share on: 
fb share twitter share gplus share more share

Hi everyone

i have been reading up on 301 direct or permanent direct, can someone tell me how i do this for my site as im not to sure.

charlene

charlie1 is offline   Reply With Quote
Unread 4th Jan 2009, 02:12 PM   #2
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi Charlene,

I believe this code will work...

RewriteEngine on
RewriteCond %{HTTP_HOST} ^replaceyoursalary.com [NC]
RewriteRule ^(.*)$ http://www.replaceyoursalary.com/$1 [L,R=301]

Replace my site URL with yours. Then you need to place the code in your .htaccess file. That should do it.

Alan

Alan Mater is offline   Reply With Quote
Unread 4th Jan 2009, 03:22 PM   #3
charlie
 
Join Date: 2008
Location: united kingdom
Posts: 78
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Thanks Alan
I will give it a go

charlene

charlie1 is offline   Reply With Quote
Unread 4th Jan 2009, 03:27 PM   #4
charlie
 
Join Date: 2008
Location: united kingdom
Posts: 78
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi Alan

i just tried to access the file but got this message "You don't have permission to access /.htaccess on this server" any ideas?

charlene

charlie1 is offline   Reply With Quote
Unread 4th Jan 2009, 03:31 PM   #5
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi Charlene,

You have to click on the edit button on the far right of the file. It's a little icon that when hovered over will say "Edit." Click that and the editor window will appear for you to copy and paste the code in.

Let me know if you have any more questions.

Alan Mater is offline   Reply With Quote
Unread 4th Jan 2009, 03:39 PM   #6
charlie
 
Join Date: 2008
Location: united kingdom
Posts: 78
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi Alan

I get a different message now

ErrorDocument 404 http://www.pluginprofitsite.com/main-25303

i dont understand do you

charlene

charlie1 is offline   Reply With Quote
Unread 4th Jan 2009, 03:47 PM   #7
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

I don't know too much about it. Your file could be different than mine and may have other code in it that may be interfering with the new code. Someone else here will no what to do. Just take the code back out for now until you can get more help. Sorry.

Alan Mater is offline   Reply With Quote
Unread 5th Jan 2009, 02:07 PM   #8
HyperActive Warrior
 
Join Date: 2008
Location: United Arab Emirates.
Posts: 171
Thanks: 0
Thanked 11 Times in 11 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi,

I have the same issue too.

Charlie, Pls let me know if ever you found a way to fix it.

Thanks in advance!

Jennifer

godisgood is offline   Reply With Quote
Unread 5th Jan 2009, 04:05 PM   #9
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Suzanne Morrison or Pat should know what to do. Hopefully they'll be in here soon to get things straightened out.

Alan Mater is offline   Reply With Quote
Unread 6th Jan 2009, 02:53 PM   #10
HyperActive Warrior
 
Join Date: 2008
Location: United Arab Emirates.
Posts: 171
Thanks: 0
Thanked 11 Times in 11 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Thank you Alan

Cheers,

Jennifer

godisgood is offline   Reply With Quote
Unread 6th Jan 2009, 03:54 PM   #11
HyperActive Warrior
War Room Member
 
Kooza's Avatar
 
Join Date: 2005
Location: Auckland, New Zealand.
Posts: 154
Thanks: 0
Thanked 46 Times in 31 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Hi Charlene,

The code you should be using is
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.cashwizzards\.com
RewriteRule (.*) http://www.cashwizzards.com/$1 [R=301,L]
You should also redirect index.html as well using this code
Code:
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index\.html
RewriteRule ^(.*)index.html$ http://www.cashwizzards.com/$1 [R=301,L]
Cheers,
Mike.
Kooza is offline   Reply With Quote
Unread 6th Jan 2009, 04:11 PM   #12
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Originally Posted by Kooza View Post

Hi Charlene,

The code you should be using is
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.cashwizzards.com
RewriteRule (.*) http://www.cashwizzards.com/$1 [R=301,L]
You should also redirect index.html as well using this code
Code:
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.cashwizzards.com/$1 [R=301,L]
Cheers,
Mike.
Thanks, Mike.

Alan Mater is offline   Reply With Quote
Unread 6th Jan 2009, 05:28 PM   #13
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 2,776
Thanks: 6,161
Thanked 2,625 Times in 1,763 Posts
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

ErrorDocument 404 http://www.pluginprofitsite.com/main-25303

That is what is built when your site is set up and it needs to remain in the .htaccess file

It can be above or beneath the other code I guess, but it needs to be exactly like that - intact, etc. or you can create an error where your website will not display at all.

This is what redirects any typos or errors people make when typing your domain name, to the sales page instead.


Originally Posted by charlie1 View Post

Hi Alan

I get a different message now

ErrorDocument 404 http://www.pluginprofitsite.com/main-25303

i dont understand do you

charlene

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote
Unread 6th Jan 2009, 05:34 PM   #14
Freelance Proofreader
War Room Member
 
Alan Mater's Avatar
 
Join Date: 2008
Location: Pennsylvania, US
Posts: 1,564
Thanks: 55
Thanked 154 Times in 135 Posts
Blog Entries: 2
Default
Re: 301 direct
Share on: 
fb share twitter share gplus share more share

Yeah, my site wasn't set up that way, which was over 3 years ago. I use the missing.html page to redirect any typos, ect. based on Host4Profit's directions.

So I guess my htaccess file is different.

Alan Mater is offline   Reply With Quote


Bookmarks

Tags
301, direct


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:38 PM.