newhouseb/SWS/master/.htaccess - Htaccess File

newhouseb/SWS/master/.htaccess

RewriteEngine On

# Ensure we have ending slashes, so relative links work properly
RewriteCond %{REQUEST_URI} !/?other/?$
RewriteCond %{REQUEST_URI} !compiled
RewriteCond %{REQUEST_URI} !.[a-z]{3,4}$
RewriteRule [^.]?[^/]$ %{REQUEST_URI}/ [R=301,L] 

# Pass off to SWS
RewriteCond %{REQUEST_URI} !/?other/?$
RewriteCond %{REQUEST_URI} !compiled
RewriteCond %{REQUEST_URI} !.[a-z]{3,4}$
RewriteRule [^.]?/$ index.php?rw=t&p=%{REQUEST_URI} [L] 

# Enable lockin of rewrite for empty index
RewriteRule ^$ index.php?rw=t [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI

Comments

Apache