logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache how do pseudo static solve symbols?

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
spser



Joined: 29 Aug 2016
Posts: 28

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: 6202
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


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1