NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page question for gurus - redirecting directories

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-12-2004, 09:47 AM THREAD STARTER               #1 (permalink)
Man from Manila
 
armstrong's Avatar
Join Date: Jul 2003
Location: The Net
Posts: 6,025
armstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud of
 

NamePros Hall of Fame
Autism Special Olympics

Question question for gurus - redirecting directories


Lets say I have two domains, each with sub-directories ABC and XYZ. I want anyone looking up anything in directory ABC to see the contents of directory XYZ.

Is there a way to do this seamlessly?
armstrong is offline  
Old 05-16-2004, 06:11 PM   #2 (permalink)
Account Closed
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

can you explain this a little bit more?
axilant is offline  
Old 05-16-2004, 06:51 PM   #3 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
For truely seemlessness, you should use mod_rewrite. Most servers support it.

Create a .htaccess file in your root with this in it
Code:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^ABC/(.*)$ /XYZ/$1
__________________
@DomainBuyer facebook
RJ is offline  
Old 05-16-2004, 11:50 PM THREAD STARTER               #4 (permalink)
Man from Manila
 
armstrong's Avatar
Join Date: Jul 2003
Location: The Net
Posts: 6,025
armstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud ofarmstrong has much to be proud of
 

NamePros Hall of Fame
Autism Special Olympics
Thanks, RJ. Looked up mod_rewrite, and have to conclude that its one of the coolest things on the internet.

Worked the first time I tried it, after I figured out the syntax. In case anyone's curious about this technique, here's all you need:

http://httpd.apache.org/docs/mod/mod_rewrite.html
armstrong is offline  
Old 05-22-2004, 10:33 AM   #5 (permalink)
NamePros Regular
 
Lauren Stephens's Avatar
Join Date: Jul 2003
Location: Ohio
Posts: 747
Lauren Stephens is a jewel in the roughLauren Stephens is a jewel in the roughLauren Stephens is a jewel in the rough
 



cpanel has a redirect
Lauren Stephens is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:12 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger