kkashi Posted May 9, 2004 Posted May 9, 2004 Hi, How would I redirect from **** to ****/site/index.html? I created an empty index.html under www I updated the .htaccess to have: redirect /index.html *****/site/index.html But it does not work. PLEASE HELP Mad!!! Quote
LisaJill Posted May 9, 2004 Posted May 9, 2004 (edited) I use many redirects, they look like this: >Redirect /index.xml http://www.lisa-jill.com/?rss=1 (as an example) Since yours looks very similar, I would guess that the only change you need for your syntax is that "r" needs to be "R". These are *nix boxes and therefore sensitive. Also moving this for organization. =) Hope that helps! Edited May 9, 2004 by TCH-Lisa Quote
kkashi Posted May 9, 2004 Author Posted May 9, 2004 Hi, Are you referring to the the r after the question mark? What does ?rss=1 mean? Quote
LisaJill Posted May 9, 2004 Posted May 9, 2004 Ah no, that was just an example from my .htaccess, for your example you'd use: >Redirect /index.html http://www.****/site/index.html That's the first r, in Redirect. =) Does that help? Sorry about that. Quote
kkashi Posted May 9, 2004 Author Posted May 9, 2004 This is exatly what I have done, but the site name keeps replicating as follows: *****/site/index.htmlsit...site/index.html Quote
LisaJill Posted May 9, 2004 Posted May 9, 2004 (edited) I'm having a really bad day with proofreading, I'm sorry kkashi. =/ The reason that it is looping is because you've told it to go the root of your domain and find index.html and to redirect it back to index.html - over, and over, and over ... an endless loop. Can you tell me exactly what you are trying to do using a real world example? Edited May 9, 2004 by TCH-Lisa Quote
LisaJill Posted May 9, 2004 Posted May 9, 2004 Fixed it, in hindsight it was easy. If you try to redirect / then it's going to loop endlessly no matter what, so we changed it to /index.html and it worked. =) For anyone else needing to do this: >Redirect permanent /index.html http://www.****/site/index.html Quote
arvind Posted May 9, 2004 Posted May 9, 2004 or >Redirect 301 /index.html http://www.****/site/index.html which is a permamnent redirect just another way to write it Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.