Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: htaccess - silent redirection from one directory to another |
|
Author |
|
dretfus
Joined: 26 Sep 2013 Posts: 1 Location: Poland
|
Posted: Thu 26 Sep '13 17:47 Post subject: htaccess - silent redirection from one directory to another |
|
|
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
|
Posted: Fri 11 Oct '13 16:57 Post subject: |
|
|
Which index.html is empty? the one on sub sub? |
|
Back to top |
|
|
|
|
|
|