添加重定向后,javascript无法正常工作

时间:2014-12-12 05:01:44

标签: javascript

添加新规则后

# Redirect /post_pu.php?id_pu=1 to /pu/1
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+post_pu\.php\?id_pu=([0-9]+) [NC]
RewriteRule ^ /pu/%1? [R=302,L]

# Internally redirect /pu/1 to /post_pu.php?id_pu=1 
RewriteRule ^pu/([0-9]+)/?$ post_pu.php?id_pu=$1 [NC,L]

javascript无效。

<script type="text/javascript" src="pu/comment.js"></script>
<script type="text/javascript" src="js/addclasskillclass.js"></script>
<script type="text/javascript" src="js/attachevent.js"></script>
<script type="text/javascript" src="js/addcss.js"></script>
<script type="text/javascript" src="js/tabtastic.js"></script>

如何解决?

1 个答案:

答案 0 :(得分:0)

我适合它 我刚刚在file.php之前添加了斜杠/