.htaccess tutorial

htaccess Elite


Removing Directories from URL

Search Engine Optimization using Htaccess

Removing Directories from URL

New postby jalexander » 04 Dec 2008 15:21

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
jalexander
 
Posts: 1
Joined: 04 Dec 2008 15:13

Return to SEO