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 Directory Section Question | 
 |   
| Author | 
  | 
 
jostclan
 
 
  Joined: 12 May 2019 Posts: 1 Location: USA, Saint Louis
  | 
 Posted: Mon 13 May '19 1:44    Post subject: Apache Directory Section Question | 
     | 
 
  | 
 
I just upgraded my Apache from 2.2.21 to version 2.4.37.  In my older version my friendly url rewrites worked just fine.  However in the new version they do not.  I have made sure I have loaded the mod_rewrite.so 
 
 
Interestingly, the urls are being rewritten fine, but my PHP $_GET array is empty if I pass more than one parameter.
 
 
Under 2.2.21 my <directory> section in httpd.conf  looked like this:
 
<Directory />
 
    Options FollowSymLinks
 
    AllowOverride None
 
    Order deny,allow
 
    Deny from all
 
</Directory>
 
 
Under 2.4.37 it looks like this:
 
    AllowOverride FileInfo
 
    Require all denied
 
 
I am assuming this is where the problem is... but I don't understand what it should read.  Can you assist? | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Mon 13 May '19 14:19    Post subject:  | 
     | 
 
  | 
 
That is not a question of the directory, but the [QSA] parameter in the rewrite rules.
 
[QSA] = query string append
 
 
e.g.
 
 	  | Code: | 	 		  
 
      RewriteEngine on
 
      RewriteBase /
 
      RewriteCond %{REQUEST_FILENAME} !-f
 
      RewriteCond %{REQUEST_FILENAME} !-d
 
      RewriteRule ^(.*)$ index.php [QSA]
 
 | 	 
  | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |