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: RewriteRule to redirect subdirectory |
|
Author |
|
ale
Joined: 20 Apr 2016 Posts: 2
|
|
Back to top |
|
ale
Joined: 20 Apr 2016 Posts: 2
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 24 Apr '16 17:32 Post subject: |
|
|
The RewriteBase is not set correctly. There shouldn't be a htdocs inside. Only the path from the url, not the file system path.
Catching a Query is easy in 2.4
[/cide]
<LocationMatch ^/ucp.php>
<If "%{QUERY_STRING} =~ /mode=login/">
# do something if query string is mode=login
</If>
</LocationMatch>
[/code] |
|
Back to top |
|
|
|
|
|
|