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: Apache how do pseudo static solve symbols?
Author
spser



Joined: 29 Aug 2016
Posts: 97

PostPosted: Wed 16 Aug '17 10:49    Post subject: Apache how do pseudo static solve symbols? Reply with quote

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

PostPosted: Mon 28 Aug '17 23:17    Post subject: Reply with quote

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


Reply to topic   Topic: Apache how do pseudo static solve symbols? View previous topic :: View next topic
Post new topic   Forum Index -> Apache