Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Plug-In Profit Site Support Forum (https://www.warriorforum.com/plug-profit-site-support-forum/)
-   -   301 direct (https://www.warriorforum.com/plug-profit-site-support-forum/42145-301-direct.html)

charlie1 4th January 2009 12:29 PM

301 direct
 
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

Alan Mater 4th January 2009 02:12 PM

Re: 301 direct
 
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

charlie1 4th January 2009 03:22 PM

Re: 301 direct
 
Thanks Alan
I will give it a go

charlene

charlie1 4th January 2009 03:27 PM

Re: 301 direct
 
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

Alan Mater 4th January 2009 03:31 PM

Re: 301 direct
 
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.

charlie1 4th January 2009 03:39 PM

Re: 301 direct
 
Hi Alan

I get a different message now

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

i dont understand do you

charlene

Alan Mater 4th January 2009 03:47 PM

Re: 301 direct
 
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.

godisgood 5th January 2009 02:07 PM

Re: 301 direct
 
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

Alan Mater 5th January 2009 04:05 PM

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

godisgood 6th January 2009 02:53 PM

Re: 301 direct
 
Thank you Alan

Cheers,

Jennifer

Kooza 6th January 2009 03:54 PM

Re: 301 direct
 
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.

Alan Mater 6th January 2009 04:11 PM

Re: 301 direct
 
Quote:

Originally Posted by Kooza (Post 395438)
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.

Patrician 6th January 2009 05:28 PM

Re: 301 direct
 
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.


Quote:

Originally Posted by charlie1 (Post 388181)
Hi Alan

I get a different message now

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

i dont understand do you

charlene


Alan Mater 6th January 2009 05:34 PM

Re: 301 direct
 
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.


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