logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: htaccess - silent redirection from one directory to another
Author
dretfus



Joined: 26 Sep 2013
Posts: 1
Location: Poland

PostPosted: Thu 26 Sep '13 17:47    Post subject: htaccess - silent redirection from one directory to another Reply with quote

I'm newbie with apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects and is silently redirected to the directory: mysite.com/projects/sub1/sub2/index.html.



My htaccess file residing within the root directory:
RewriteEngine on
RewriteRule ^projects/$ projects/sub1/sub2/index.html [L]





Unfortunately with the above code I've noticed, that index.html stopped working. Only white page shows up (as if index.html didn't have any content).

So what am I doing wrong?


Regards
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 11 Oct '13 16:57    Post subject: Reply with quote

Which index.html is empty? the one on sub sub?
Back to top


Reply to topic   Topic: htaccess - silent redirection from one directory to another View previous topic :: View next topic
Post new topic   Forum Index -> Apache