[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 05-12-2004, 08:47 AM   #1 (permalink)
Man from Manila
 
armstrong's Avatar
 
Join Date: Jul 2003
Location: The Net
Posts: 6,840
701.50 NP$ (Donate)

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

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, 05:11 PM   #2 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

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


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

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
104,201.68 NP$ (Donate)

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
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
RJ is offline  
Old 05-16-2004, 10:50 PM   #4 (permalink)
Man from Manila
 
armstrong's Avatar
 
Join Date: Jul 2003
Location: The Net
Posts: 6,840
701.50 NP$ (Donate)

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

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, 09:33 AM   #5 (permalink)
NamePros Regular
 
Lauren Stephens's Avatar
 
Join Date: Jul 2003
Location: western wisconsin
Posts: 741
27.00 NP$ (Donate)

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
__________________
The One... The Only...
Lauren Stephens
Lauren Stephens is offline  
Closed Thread


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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:36 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85