<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]
# 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>
|