Php Preg_Match Pattern for Week Days Name

Hello to all, welcome to therichpost.com. In this post, I will tell you How to remove .php extension from url? We will remove .php extension from url? and you need to add this code into your .htaccess file. Here is the working code and you need to add this .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

There are so many codes in PHP and I will let you know all. Please do comment if you any query related to this post. Thank you. Therichpost.com

By therichpost

Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

9 thoughts on “How to remove .php extension from url?”
  1. Once I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get 4 emails with the same comment. Is there any method you may remove me from that service? Thanks!

  2. Hello Tim, Thank you for your comment.

    Here is the solution:

    Open Gmail Account .
    Open the message.
    In the top right, click the Down Arrow.
    Click Block [sender].

  3. Hi there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?

  4. What’s up, I log on to your new stuff regularly.
    Your humoristic style is awesome, keep it up!

  5. Howdy! Would you mind if I share your blog with my twittergroup? There’s a lot of people that I think would really appreciate your content.Please let me know. Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.