Forum Moderators: phranque

Message Too Old, No Replies

301 on individual pages

Just want to check its all ok

         

mangotude

2:10 pm on May 3, 2006 (gmt 0)

10+ Year Member



Hi,

I have three forms which have been on a site for a while now:

http://www.example.com/form1.html

http://www.example.com/form2.html

http://www.example.com/form3.html

None of the information is credit card etc, but I've decided to put them on https. so I'm looking to redirect external links and bookmarked pages to the https pages.

on .htaccess i have

RewriteEngine On
redirect 301 /form1.html [example.com...]
redirect 301 /form2.html [example.com...]
redirect 301 /form3.html [example.com...]

I've tested this and it seems to be fine. It might be because it seems just TOO simple, but i get the feeling there's a potential problem here down the line.

Anything anyone can see, or is it fine to go ahead

jdMorgan

2:27 pm on May 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since Redirect is not a mod_rewrite directive, but rather belongs to mod_alias, there is no need for the RewriteEngine on directive in that code snippet.

Jim

mangotude

2:52 pm on May 3, 2006 (gmt 0)

10+ Year Member



i see. it worked fine without it.

apart from that, there's no problems with this? maybe i've read too many 301 posts, because something's nagging me about it.

mangotude

3:56 pm on May 3, 2006 (gmt 0)

10+ Year Member



OK,

I tried implementing it on the actual pages in question having run tests prior.

IE took literally five minutes.

i got in firefox the following error message:

"redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."

there aren't any cookies to be blocked.

this has worked fine with test URLs in a different directory - and with other pages going to https without issue.

should i use a mod_rewrite 301 instead?