URL rewritting

For any site SEO (Search engine optimization) is a very important aspect to be on search list in Search engines.

I am describing here simple tips which might be useful to you.

Normally a page URL is ending with parameters.

For example URL are like http://ursite/index.php?d=1&p=3

But you can change it like http://ursite/1/3


You need to make a .htaccess file for that and upload in root directory of your site

And write this inside it

RewriteRule ^([0-9_-]+)$ index.php?d=$1
RewriteRule ^([0-9_-]+)/$ index.php?d=$1

this will show url like http://ursite/1

You can see this in practicle at one of the site I made http://bimglobalsolutions.com/2

I am attaching a simple example.


1) Download the file and save the text file by name “.htaccess”.

2) Place the file in your root directory.

3) You can modify the file as per you requirement

For further information please look at this link Info Site

Leave a Reply

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

Scroll to top