PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Link2Payment   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Link2Payment
Application to generate links for people to pay
Author: By
Last change:
Date: 1 year ago
Size: 1,350 bytes


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: #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] # NOTE: These rules have to come before we rewrite all uri requests. Else, it won't work RewriteRule ^s/([a-z0-9\.\-_]+)$ index.php?uri=stripe&hash=$1 [QSA,L] RewriteRule ^p/([a-z0-9\.\-_]+)$ index.php?uri=paypal&hash=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L] </IfModule>