skip to Main Content

.htaccess causes redirection – CPanel

Hello there I have 2 folders inside public_html ex.(mainfolder and subfolder). Inside my public_html same level with my 2 folders, I have an .htaccess file like this. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteOptions inherit Options -Indexes…

VIEW QUESTION

htaccess: how to stop it after first match – CPanel

this is my htaccess file : <IfModule mod_rewrite.c> # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^getlastversion(.*)$ /lastversion.php$1 [R=301,NC,L,QSA] # this is temporary and should be removed RewriteRule ^(.*)$ http://example.com?$1 [R=301,NC,L,QSA] </IfModule> browsing mysite.com/getlastversion redirect to example.com?lastversion.php(second rule),whereas i…

VIEW QUESTION
Back To Top
Search