clean url with html file

Sponsors

We have site in plain html file and some time we want to use clean URLs or Pretty URLs for our site.
Clean URLs are in demand becasue of Seach Engine Optimiztion.

You can achive the Clean URLs. With not doing rework of building site.

Requirement:
Apache Server.
mod_rewrite engine need to on.

Create .htaccess file
and copy paste the following lines

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

#code for About us Page
RewriteRule ^about-us(\d+)*$ ./about.html$1

Put this file into your root folder.

What this will do?

For example I want

www.example.com/about.html to look like www.example.com/about-us/

You may like following Articles!

This entry was posted in Apache, Open source, web design and tagged , , by Wordpress API. Bookmark the permalink.

About Wordpress API

API means Application Program interface. In Wordpress API we are giving all the information about wordpress API. We worked for many wordpress plugins and themes. We have expertise in PHP, Databases, Graphic Design, Ruby on Rails, Java, Wordpress, Drupal and many CMS. We always give you the best solutions about wordpress and other related topics in This Blog. We will give you always fresh tips and tricks and techniques about wordpress in this blog.

5 thoughts on “clean url with html file

  1. Pingback: uberVU - social comments

  2. This is a good write-up, I found your website researching aol for a related subject matter and came to this. I couldnt come across to much additional material on this write-up, so it was good to locate this one. I will end up being back to look at some other articles that you have another time.

  3. This is a good post, I was wondering if I could use this piece of content on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>