Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two url's for the same domain

1) www.testurl.co.za/folder1 2) www.testurl.co.za/folder2

The main website is within www.testurl.co.za/folder1 , if visitors enter www.testurl.co.za/folder2 the website within folder1 should load but the url should still display www.testurl.co.za/folder2. So with other words folder2 needs to point to folder1

Is this possible to achieve using a .htaccess file in folder2? If so how?

share|improve this question
    
I think for your requirement frame forwarding is the best method. –  Suku Apr 7 '11 at 7:23
    
@peter - but will the url remain the same when I forward it? URL www.testurl.co.za/folder2 needs to remain although files in www.testurl.co.za/folder1 needs to display, according to the url different content will display –  Roland Apr 7 '11 at 7:28
    
yes, in frame forwarding URL will remain same. –  Suku Apr 7 '11 at 7:32
    
@peter - Cool, I get what you are saying, but can't this be done with a .htaccess file? –  Roland Apr 7 '11 at 7:41
    
@peter- I think I found my answer in codegrad.hub.ph/… –  Roland Apr 7 '11 at 7:47
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.