Skip to content
Permalink
Browse files

[Cleanup:.htaccess] Fix indentation + Make "RewriteBase /" optional (…

…comment it by default)
  • Loading branch information...
pH-7 committed Apr 7, 2019
1 parent c6a48ad commit 391d9a4acac5958a435089c2086c8b739c5df007
Showing with 14 additions and 12 deletions.
  1. +14 −12 .htaccess
@@ -1,16 +1,18 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteEngine On

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
## Uncomment the below "#RewriteBase /" (remove "#") if pH4Social is installed in a folder, and add the folder name after the slash "/"
## Example: If pH4Social is installed in "/public_html/ph4social/", then it should be "RewriteBase /ph4social/", however it may depends of your Apache configuration.
## If you need, please ask your hosting company or check the Apache doc: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
# RewriteBase /

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

0 comments on commit 391d9a4

Please sign in to comment.
You can’t perform that action at this time.