General Topics

How To Verify mod rewrite Enabled Or Not On Server?

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.

CPanel Login

  • Now create a new file with the name of mod_rewrite.php.

Create mod_rewrite.php file

  • 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.

Create new .htaccess file

  • Now add this code in the new .htaccess file which you have created now.
RewriteEngine On
RewriteRule ^.*$ mod_rewrite.php

Place code in .htaccess file

  • Now visit your site you will see a message “Mod_rewrite is activated!. Also shown in below picture.

Open Your Site

Don’t forget to read How To Show Article Publish Date In Google Search Results?

Show More

Humna Yousaf

I am Humna Yousaf and love with blogging and serving as the author of Global Blurb. I love with writing so therefore I write to fulfill my urge. I am a developer, SEO expert, and designer. I have the experience to entertain with WordPress more of than 2 years. If you want to hire me.

Related Articles

Want to contribute