Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL redirect/rewrite using htaccess

Status
Not open for further replies.

gazza110

Technical User
Apr 14, 2004
42
GB
Hi

I am trying to redirect from one domain to another without changing the URL address.

I have a url which is:


This domain is hosted however has limited functions.

The files for this site are actually stored on another domain that has phpDatabases, more space and bandwidth.

These files are on a SubDomain of my personal site:


Is there anyway to use htaccess to redirect the user from to WITHOUT changing the URL (ie the user still sees after the redirect).

I have been able to get a redirection to work however this changes the URL to therefore revealing my personal domain (which I don't want to do).

Any ideas???
 
Thanks for the suggestion Noway2

I have looked at details of mod_proxy but have not been able to get this to work as I need it to.

Could you perhaps write an example piece of code of this for me to follow?

Thanks in advance.
 
I tried the following code in the .htacess file which is hosted on the domain name
Code:
LoadModule proxy_module modules/mod_proxy.so
AddModule mod_proxy.c

ProxyRequests off

ProxyPass / [URL unfurl="true"]http://Music.MyPersonalHosting.co.uk/[/URL]

This caused a: 500 Internal Server Error Message

HELP Please!!
 
gazza, I looked at mod_proxy once before when I was messing around with the features and abilities of apache. I will take a look tomorrow morning when I am fresh (I just got home after a 5 hour drive in snow) and will see if I can provide you with an example to start.

Your 500 error says something isn't configured right. elgrandeperro may be right. In any case, I don't recall it being too difficult to use it once you "saw" the secret. I managed to get it working on two computers fairly easily.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top