Forum Moderators: DixonJones

Message Too Old, No Replies

htaccess redirect

         

windsurfer51

3:30 pm on May 12, 2010 (gmt 0)

10+ Year Member



I have an htaccess file that i would like to permanently redirect a website. I have another site and was able to do it but i don't seem to be able to do so with this one.

The site i am trying to redirect is www.mysurplus.ca/nostik to www.nostik.ca

I have the following in the htaccess file

Redirect 301 /nostik/*.* [nostik.ca...]
Redirect 301 /nostik/http://www.nostik.ca/
Redirect 301 /nostik/index.html [nostik.ca...]
Redirect 301 /nostik/index.html1 [nostik.ca...]
Redirect 301 /*.* [nostik.ca...]
Redirect 301 /http://www.nostik.ca/
Redirect 301 /index.html [nostik.ca...]
Redirect 301 /index.html1 [nostik.ca...]

Just wondering if anybody could give me some help with this.

Thanks in advance.

vaibhav45

5:05 am on May 14, 2010 (gmt 0)

10+ Year Member



Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) [yournewdomain.com...] [R=301,L]:

Take back up and put this code in htaccess file of your old domain. It wll work

windsurfer51

10:58 am on May 14, 2010 (gmt 0)

10+ Year Member



Hi Vaibhav45
Thank you for the help. I tried to that and took the square brackets out and that wouldn't work, left the brackets in and that didn't work, took all the brackets out and that wouldn't work, i tried every combination and then again to make sure i called the file name correctly .htaccess and she still won't work. Any other suggestions ?

Thank you

P.S i did put the file in the nostik directory since i don't want to redirect the www mysurplus ca site which is up and running.