Rewriting product.php?id=12 to product-12.html
It is a simple redirection in which .php extension is hidden from the browser’s address bar and dynamic url (containing “?” character) is converted into a static URL.
RewriteEngine on
RewriteRule ^product-([0-9]+)\.html$ product.php?id=$1
For more reference on this refer:
http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html
Subscribe to:
Post Comments (Atom)
Customizing the Search form - Drupal
To change the label text and text inside the search box and the text on the submit and changing the Submit button image, you can use the fo...
-
Query from the DB to retrieve the contents. $query = "SELECT title, link, description, pubDate FROM articles LIMIT 10" ; $re...
-
To change the label text and text inside the search box and the text on the submit and changing the Submit button image, you can use the fo...
-
Code to validate: if (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$',$_REQUEST['email'])) { echo 'Va...
No comments:
Post a Comment