Forum Moderators: phranque
1. http://www.domain.com/some-content.html
2. http://www.domain.com/some-content
RewriteRule ^(.*).html$ http://www.my-domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !\.html
RewriteCond %{REQUEST_URI} !(.+)/
RewriteRule ^(.+) http://example.example.com/$1.html [R=301,L] [edited by: engine at 5:15 pm (utc) on Dec 12, 2011]
[edit reason] url obfuscated [/edit]
#php_flag display_errors On
#Options +FollowSymlinks
RewriteEngine Off
RewriteEngine On
RewriteCond %{HTTP_HOST} ^doamin.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&resource=$1 [L]
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
</Files>
^(([^/]+/)*[^/.]+)\.html?$ ^(([^/]+/)*[^/.]+)$ No need to ever expose the server technology in the URL.