Why am I getting a 500 error with these RewriteRules after updating to apache 2.4

时间:2017-04-10 03:11:15

标签: regex apache mod-rewrite

my rewriterules lines were working fine on apache 2.2. Last night, after updating to apache 2.4 (with WHM easyapache 3),the web site with this .htaccess gets 500 error.

Any suggestion please...

RewriteEngine On
RewriteRule ^add-p$ index_adp.php
RewriteRule ^Reservations$ Reservations_.php
RewriteRule ^Flight$ Flight.php
RewriteRule ^search$ search.php
RewriteRule ^search_IE$ search_IE.php
RewriteRule share_search$ share_search.php
RewriteRule ^Map-Travel-([a-zA-Z0-9_-]+)$ Map_T.php?L1=$1
RewriteRule ^Map-Travel-([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+)$ Map_T.php?L1=$1&L2=$2
RewriteRule ^Map-Travel-([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+)$ Map_T.php?L1=$1&L2=$2&L3=$3
RewriteRule ^Map-Travel-([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+);([a-zA-Z0-9_-]+)$ Map_T.php?L1=$1&L2=$2&L3=$3&L4=$4
RewriteRule ^share-([a-zA-Z0-9_-]+)-(.*)-(.*)-(.*).html$ share_data.php?sid=$1
RewriteRule ^share-([a-zA-Z0-9_-]+).html$ share_data.php?sid=$1
RewriteRule ^([a-zA-Z0-9_-]+).html$ search_data.php?acpid=$1
RewriteRule ^([a-zA-Z0-9_-]+)-(.*)-(.*)-(.*).html$ search_data.php?pid=$1&cont=nn&lname=$2&pname=$3&ename=$4
RewriteRule ^([a-zA-Z0-9_-]+).html$ search_data.php?pid=$1

0 个答案:

没有答案