2009年10月27日星期二

Apache URL Rewrite Rule


<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value register_globals 1
php_flag display_errors On
php_flag track_errors On
</IfModule>


#seo url
Options +FollowSymLinks
RewriteEngine On
RewriteBase /example/

RewriteRule ^(.*)coupon_products-(.*)-buy_now.html$
coupon_products.php?products_id=$2&action=buy_now&%{QUERY_STRING}
RewriteRule ^(\w*)\.html$ $1\.php
#seo url end

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 192.139.122.122

1 条评论 :

  1. [bash]
    Options Indexes MultiViews FollowSymlinks
    [/bash]

    回复删除