im new here.
so i have VPS Centos 7 on Google Cloud, i've install LAMP(php 7.3) on there and place source code in var/www/html/ so i've found some problem that my htaccess doesnt work to masking
addres : example.com/media.php?module=home (this address work properly in browser)
into : example.com/home.html (this address show error The requested URL /home.html was not found on this server.)
my htaccess :
RewriteEngine On
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://www.example.id/index.php$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^home.html$ media.php?module=home1 [L]
NB : this htaccess are working in last cpanel whm and doesnt work in my new VPS only installed LAMP
Thankyou
Aucun commentaire:
Enregistrer un commentaire