• Sign in to follow this  
    Followers 0

    (0 reviews)

    Removing File extension from URL [.htaccess]

    Say you have (www.Yourdomain.com/index.html) and you want it to say (www.Yourdomain.com/index)

    Well, here is how to do that.

     

    Just add this to your .htaccess

     

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^(.*)$ $1.html

     

    0

    Sign in to follow this  
    Followers 0

    User Feedback

    Create an account or sign in to leave a review

    You need to be a member in order to leave a review

    Create an account

    Sign up for a new account in our community. It's easy!


    Register a new account

    Sign in

    Already have an account? Sign in here.


    Sign In Now

    There are no reviews to display.