Search engine friendly (URL rewriting)

A

Anonymous

Guest
Hi All,


I need to make my website as search engine friendly that means I dont want to show my querystrings actually passing with lots of variables.

So I want to know how it is possible that all my .php?var="somevalue"
pages look like .html

I need explanation for both Apache server & IIS .
Please!


Viral B. Upadhyaya
 
For apache look here: http://httpd.apache.org/docs/misc/rewriteguide.html
 
this will help you to...
/news/569.html to /news.php?newsid=569
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} /news/([0-9]+)\.html
RewriteRule (.*) /news.php?newsid=%1 [L]
 
Hi toweter,ruturajv



Thank you so much , I will inform u as soon as this code works.

ThanX for precious help.

Viral B. Upadhyaya
 
Back
Top