Is this even possible with mod rewrite

Using a single web hosting account to host multiple sites

Is this even possible with mod rewrite

Postby PardDhillon » Tue Feb 13, 2007 4:38 am

Hi there, I’m a complete newbie to mod_rewrite but I was wondering if the following is even possible.

I have a website at http://www.bodybling.co.uk

And I have a store located on another server at: https://id505.securepod.com/bodybling.c ... ntmanager/

I want users to be able to go to http://www.bodybling.co.uk/storefront/ but be served pages from https://id505.securepod.com/bodybling.c ... ntmanager/

Is there any code I can write in the .htaccess file in the subfolder /storefront/ that will serve pages from the other site so that it looks like they are on the http://www.bodybling.co.uk?

All the pages appear after the /merchantmanager/ folder, so if a user was looking at /merchantmanager/index.php could I make it look like it was at http://www.bodybling.co.uk/storefront/index.php?

I thank you in advance for any help.
PardDhillon
 
Posts: 2
Joined: Tue Feb 13, 2007 4:21 am

Postby richardk » Tue Feb 13, 2007 11:10 am

Probably not, unless your domain can use SSL as well, because as far as i know, you can't proxy https requests though http. If your server has mod_proxy (and mod_rewrite) you could try this, but it's requires twice the transfer:
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^storefront/(.*)$ https://id505.securepod.com/bodybling.co.uk/merchantmanager/$1 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby PardDhillon » Wed Feb 14, 2007 2:58 am

The domain does accept SSL aswell. I have copied the code you supplied in the .htaccess file located in the /storefront/ subfolder, but it still reads the index.htm file in that folder rather than what I have written in the .htaccess file.
PardDhillon
 
Posts: 2
Joined: Tue Feb 13, 2007 4:21 am

Postby richardk » Wed Feb 14, 2007 7:46 am

.htaccess file located in the /storefront/ subfolder

Remove storefront/.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 69 guests

cron