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: Apache how do pseudo static solve symbols? |
|
Author |
|
spser
Joined: 29 Aug 2016 Posts: 97
|
Posted: Wed 16 Aug '17 10:49 Post subject: Apache how do pseudo static solve symbols? |
|
|
Code: |
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^(.*)$ [NC]
RewriteRule ^(.*)$ ./test.php?a=$1&%1 [L]
|
queryurl: http://127.0.0.1/%22bbb/ccc
Finally returns the result of:
Code: | ACCESS FORBIDDEN!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
ERROR STATUS 403 |
Why is that? What symbols cannot be URL? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 28 Aug '17 23:17 Post subject: |
|
|
Just for testing use
Code: |
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) test.php?a=$1 [QSA]
|
|
|
Back to top |
|
|
|
|
|
|