Forum Moderators: phranque
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.example.com
AuthUserFile /home/example/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/example/public_html/_vti_pvt/service.grp
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
#
# Externally redirect requests for dynamic URLs (now used only as filepaths) back to new static URLs
#
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(index\.php)?\?a=read&page=([^&\ ]+)\ HTTP/
RewriteRule ^(index\.php)?$ http://www.example.com/articles/%2\.html? [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(index\.php)?\?a=([^&\ ]+)\ HTTP/
RewriteRule ^(index\.php)?$ http://www.example.com/%2\.html? [R=301,L]
#
#
# Internally rewrite requests for new static URLs to script filepath+query
#
RewriteRule ^articles(/|\.html)$ /index.php?a=read&page=articles [L]
#
RewriteRule ^articles/([^/.]+)\.html$ /index.php?a=read&page=$1 [L]
#
RewriteRule ^([^/.]+)\.html$ /index.php?a=$1 [L]
GET /index.php?a=read&article=blue-widget-features HTTP/1.1
[edited by: jdMorgan at 12:27 am (utc) on May 19, 2010]