Credit Cards - Loans - Free Articles Directory - MPAA - vShare YouTube Clone

PDA

View Full Version : 301/redirect noob...


Voasi
Jul 24th 2006, 11:13 am
I'm trying to a simple 301 redirect throught .htaccess and I'm having trouble making it work. The site is hosted at GoDaddy.

I've tried 2 different types:

Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^/aboutus.html http://www.pacificbulletproof.com/about-us/index.html [R=301,L]

AND...

RewriteEngine on
redirect 301 /aboutus.html http://www.pacificbulletproof.com/about-us/index.html

...and still I get nothing.

I know you have to do funny things in the file like "make sure you hit ENTER after you put the code in" ...but I'm not sure I know if that's right.

Any guidance would be appreciated.

Thanks!

- Adam

Voasi
Jul 24th 2006, 11:50 am
I got it. :)

geniosity
Aug 12th 2006, 12:50 am
Hi.

Could you tell me what you did? I'm struggling with this at the moment.

Thanks.

Neale
Nov 2nd 2006, 1:04 pm
Add me to the list of how did you do that at godaddy ?

Neale
Nov 2nd 2006, 1:32 pm
Here it is not sure why I could not get this to work earlier
Copy the following code in to a notepad file
name it .htaccess upload to the root
replace yourdomain with site name

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

Neale