I am trying to remove the get keys from my URL.
So https://www.website.com/?page=gallery would become https://www.website.com/gallery.
And if &action is there it should be like
https://www.website.com/?page=gallery&action=view into https://www.website.com/gallery/view.
Of course, gallery, and view are dynamic - they define what page my site loads.
I have been trying all day, but to no avail. Can any of you help me out here?
My current .htaccess:
Order Allow,Deny
Allow from <MYIP>
ErrorDocument 403 /message.html
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
#Hide index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(.*)/index\.php [NC]
RewriteRule ^ %1 [R=301,L]
#Force www and https:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^website.com [NC]
RewriteRule ^(.*)$ https://www.website.com/$1 [L,R=301,NC]
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip
Options -Indexes