Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 1st, 2012, 10:55 AM
SteveBarrese SteveBarrese is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 SteveBarrese User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 39 sec
Reputation Power: 0
mod_rewrite - Mod_rewrite or utopia?

Hi there,

I read the "MOD REWRITE Guide & Common Requests" but honestly I don't understand if possible or not departing from A.com in order to get to B.com/C/d.html, keeping visible in the address bar A.com/C/d.html

Any help will be really appreciated.
Thanks.

Reply With Quote
  #2  
Old March 1st, 2012, 01:01 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 43 m 47 sec
Reputation Power: 6991
It is not possible.

If A.com and B.com are hosted on the same server, then you could configure Apache to serve both domains from the same code base. Thus B.com/C/d.html would point to the same file as A.com/C/d.html. The address bar would still show whatever domain you used to access the site.

If A.com and B.com are hosted on different servers, then you could configure the A.com server to act as a proxy server for B.com. So the user sends a request to A.com for /C/d.html, then A.com sends a request to B.com/C/d.html, then it returns the result back to the user.
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old March 1st, 2012, 06:05 PM
SteveBarrese SteveBarrese is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 SteveBarrese User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 39 sec
Reputation Power: 0
Actually the domain A is not on the same server of domain B.

A "DNS Service" is activated for domain A.com. It allows to manage the A record by setting up the IP corresponding to the host (B.com) on which is configured a "DNS Zone" named A.com.
So basically the structure is like this:

B.com
|_ /html/
| ___|_ .htaccess
| ___|_ index.php
| ___|_ /C/
| ______|_ d.php
|
|_ A.com
___|_ /html/
________|_ .htaccess
________|_ index.php

In the root folder of A.com we can then upload an .htaccess file correctly configured.

My aim is to keep visible in the address bar the full path from the starting point.

Request for
A.com/C/D/

should serve content from
B.com/C/d.php

About the other direction, if someone explicitly asks for
B.com/C/d.php

I don't care, so change in domain names absolutely is not needed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_rewrite - Mod_rewrite or utopia?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap