/ Published in: PHP

You can combine them with this: http://snipplr.com/view/4848/underscore-strings/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] # http://domain/about -> http://domain/about.php -------------------------------------------------- .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] # http://domain/about -> http://domain/index.php?q=about <?php // $url_data is an array ?>
URL: http://spindrop.us/2006/07/26/how-to-remove-file-extensions-from-urls/
Comments
