Code solutions to PHP, JS, CSSCode source PHP, JS, CSS

Spread your code soluces to the world

Love me

HTACCESS Source code

Automatic search result page

01/27/2012 by Dux   /   5/5 (1 ratings)
Here is a simple method using htaccess to turn an URL www.yoursite.com/keyword to a search results page. Htaccess code obviously not include the search engine. It only transmits the variable q to be treated by your internal search engine. Elegant and efficient solution to capture a indexing bot a on keyword page. If your data is in MySQL...

Create virtual folders using htaccess

05/19/2011 by Dux   /   1.8/5 (4 ratings)
These 3 lines of code for .htaccess create virtual folders. An URL like www.mywebsite.com/virtual_folder/home.html will be understood by the server as www.mywebsite.com/index.php?dir=virtual_folder&page=home