Here I am sharing mod rewrite enable tutorial so you can do Linux Enable mod rewrite after reading this. If you want IP Canonicalization for better ranking on SE. Then you must verify first apache rewrite rule enable and paste a code of IP Canonicalization in your .htaccess file. I hope you will easily understand this post which has written about mod rewrite. In future when you want to enable mod rewrite. Then I hope you can enable it easily without support from any article.
mod_rewrite Enable Apache
- First Login CPanel account.
- Now create a new file with the name of mod_rewrite.php.
- Add this code into the new created the file.
<?php echo "Mod_rewrite is activated!"; ?>
- Now the turn to rename old .htaccess file to “.htaccess_original” and create a new file like shown below.
- Now add this code in the new .htaccess file which you have created now.
RewriteEngine On RewriteRule ^.*$ mod_rewrite.php
- Now visit your site you will see a message “Mod_rewrite is activated!. Also shown in below picture.
Don’t forget to read How To Show Article Publish Date In Google Search Results?