smenda-dev/infosmenda/master/.htaccess - Htaccess File

smenda-dev/infosmenda/master/.htaccess

# Original
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
   RewriteEngine On
   # Certain hosts may require the following line.
   # If vanilla is in a subfolder then you need to specify it after the /. 
   # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
   # RewriteBase /
   
   RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
   RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
   
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache