Here are some steps if your .htaccess file is not working in PHP Server cPanel
1 ) <?php phpinfo() ?> check here mod_rewrite is enable or not
2) create mod_rewrite.php
file in your root directory and place the below code in it:
<?php
echo
"Mod_rewrite is activated!"
; ?>
Now rename your old .htaccess
file
Just create new .htaccess file and place the below code.
RewriteEngine On
RewriteRule ^.*$ mod_rewrite.php
Now hit save.
now info here
https://serverfault.com/questions/397168/how-to-i-test-if-mod-rewrite-is-enabled
No comments:
Post a Comment