PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   MyDreamLife.eu   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MyDreamLife.eu
Plan a life change to a different country
Author: By
Last change:
Date: 1 year ago
Size: 1,191 bytes
 

Contents

Class file image Download
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> # Disable Directory Browsing Options -MultiViews -Indexes </IfModule> Options +FollowSymLinks RewriteEngine On ## Uncomment "#RewriteBase /" below (remove "#") if the website is installed in a folder, and then add the folder name after the slash "/" ## Example: If it is installed in "/public_html/kikder/", then it should be "RewriteBase /kikder/", however it can 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 / # Remove www subdomain in the URL # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # Force the URL to be https (only if you have an SSL certificate) # RewriteCond %{SERVER_PORT} 80 # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^p/([a-z0-9\.\-_]{5,})/([0-9]+)$ index.php?uri=post&id=$2 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L] </IfModule>