• Home
  • About Us
  • Services
    • Web Development
      • LARAVEL
      • PHP
      • WordPress
    • Mobile Development
      • IOS
      • Android
    • SEO
    • Digital Marketing
    • WordPress Themes
  • Training
    • PHP Training Course
    • Android Training
  • Portfolios
    • Web Apps
    • Android Apps
    • IOS Apps
  • Career
  • Event
  • Contact Us
Email info@besticoder.com
Phone +917984387280
    • Home
    • About Us
    • Services
      • Web Development
        • LARAVEL
        • PHP
        • WordPress
      • Mobile Development
        • IOS
        • Android
      • SEO
      • Digital Marketing
      • WordPress Themes
    • Training
      • PHP Training Course
      • Android Training
    • Portfolios
      • Web Apps
      • Android Apps
      • IOS Apps
    • Career
    • Event
    • Contact Us
Besticoder
Besticoder
Email
info@besticoder.com
Phone
+917984387280
Besticoder
Besticoder
Besticoder
  • Home
  • About Us
  • Services
    • Web Development
      • LARAVEL
      • PHP
      • WordPress
    • Mobile Development
      • IOS
      • Android
    • SEO
    • Digital Marketing
    • WordPress Themes
  • Training
    • PHP Training Course
    • Android Training
  • Portfolios
    • Web Apps
    • Android Apps
    • IOS Apps
  • Career
  • Event
  • Contact Us

How to remove .php, .html from url using htaccess

Besticoder > Knowledge Base > CkEditor > How to remove .php, .html from url using htaccess
  • January 19, 2021
  • admin
  • CkEditor, Core, JavaScript, MySqli, Php
  • 4501

When we are working with core functionality like php or html then the url is come with the file extension like .php,.html,.htm.jsp but its not look like user friendly, the process of remove file extension from the end in url is called url re-writing. there is a easy way to remove it from url just follow this blog instruction, if you are using simple server then you just need to create .htaccess file and need to write some  rules on it.

https://espana-medico.com

Step 1 :  Create .htaccess file

  • the filename is only .htaccess nothing come front of the file name
  • make sure in your server url re-writing is enabled
  • Put below code in .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]Copy

The above code is remove the .php file extension from url you can use its for all types of file but you just need to replace .php to other extension.

Leave a Reply

You must be logged in to post a comment.

Have Any Project?
Call Us Today!

(+91) 95586 08536

Recent Posts

  • How to use Ckeditor in your website for user input
  • How to install wordpress in easiest way
  • How to remove .php, .html from url using htaccess

Categories

  • Ajax
  • Bootstrap
  • CkEditor
  • Core
  • Css
  • Html
  • JavaScript
  • MySqli
  • Php
  • Wordpress
Besticoder
Incepted in 2015, Best I coder is an IT company offering a suite of web & mobile application development services for diverse industry verticals. We act as an invaluable catalyst for building a culture of innovation.

IT Services

  • Android App Developments
  • Web Development
  • IOS Development
  • Speed Optimization
  • Web Design

Contact Info

  • 724, The spire 2, Near Shital park 150 Feet Ring Road
    Rajkot-360006
  • (+91)7984387280
  • info@besticoder.com
  • Opening Hours: 10:00 - 7:30

Newsletter

© 2021 All Rights Reserved. Design & Developed By Besticoder

  • Home
  • About Us
  • Services
  • Contact Us
  • Knowledge Base
  • Career
×

Some text in the Modal..