[英]rewrite rule is not working in .htaccess file
in my portal i call a pdf file, path looks like http://www.mysite.com/filespath/books/online_bliss_in_five_simple_steps_1339668056/live/online_dating_bliss_in_five_simple_steps_1339668056.php在我的门户中,我调用了一个 pdf 文件,路径看起来像http://www.mysite.com/filespath/books/online_bliss_in_five_simple_steps_1339668056/live/online_dating_bliss_in_five_simple_steps_1339668056.php
for user acceptance i need to reduce this url.为了用户接受,我需要减少这个网址。 then i add a code in .htaccess file.
然后我在 .htaccess 文件中添加一个代码。 after adding this line only a white page is displaying when i call my portal the code is
添加此行后,当我调用我的门户时,仅显示一个白页,代码为
RewriteEngine On
RewriteRule ^book/([A-Za-z0-9-]+_.)/?$ /live/$1.php [NC,L]
please help me请帮我
Try writing the full path:尝试编写完整路径:
RewriteEngine On
RewriteBase /filespath/book/
RewriteRule ^([A-Za-z0-9-]+_.)/?$ $1/live/$1.php [NC,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.