Quantcast
Channel: Answer My Searches » printers
Viewing all articles
Browse latest Browse all 4

Easily Redirect a Whole Directory on Your Website to Somewhere Else

$
0
0

I hunkered down for a whole night of trying to redirect people visiting http://www.blendedtechnologies.com/justoneclubcard/ over to my new domain www.justoneclubcard.com. I wanted everything inside of it like http://www.blendedtechnologies.com/justoneclubcard/index.py and even including all those CGI GET paramters to seamlessly be transferred over to the new domain.

Well, I did it, and it was easy!, Check those links in the last paragraph if you don’t believe me ;-)

This site explained it best. Ultimately it was as simple as adding the following line to my .htaccess file in my root directory of the Blended Technologies website:
Redirect /justoneclubcard http://www.justoneclubcard.com/

Optional Explaination
So the line above is saying to send any browser requesting the directory /justoneclubcard over to http://www.justoneclubcard.com/. And /justoneclubcard corresponds to the external URL of http://www.blendedtechnologies.com/justoneclubcard/. The .htaccess file just doesn’t need to see the http://www.blendedtechnologies.com/ part because that’s what / means to it.

If you’re not familiar with the .htaccess file, here’s a good primer to get you started.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images