Removing Directories from URL
Hello,
I'm kinda stuck with doing some redirects and was wondering if anyone could help me.
What I need to do is take this URL:
http://www.mydomain.com/cgi-bin/mydomain/index.html
and rewrite it to:
http://www.mydomain.com/index.html
but the urls in the pages are still going to be point to http://www.mydomain.com/cgi-bin/mydomain/index.html
So what I need is to make /cgi-bin/mydomain/index.html rewrite to /index.html and /index.html point to /cgi-bin/mydomain/index.html without creating an infinite loop.
Any ideas would be appreciated!
- Jonathan
I'm kinda stuck with doing some redirects and was wondering if anyone could help me.
What I need to do is take this URL:
http://www.mydomain.com/cgi-bin/mydomain/index.html
and rewrite it to:
http://www.mydomain.com/index.html
but the urls in the pages are still going to be point to http://www.mydomain.com/cgi-bin/mydomain/index.html
So what I need is to make /cgi-bin/mydomain/index.html rewrite to /index.html and /index.html point to /cgi-bin/mydomain/index.html without creating an infinite loop.
Any ideas would be appreciated!
- Jonathan