rewriteRule不起作用

rewriteRule不起作用

本文介绍了RewriteRule不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经确认启用了mod_rewrite.

我要重写的URL如

I have verified that mod_rewrite is enabled.

The URL that I want to rewrite is as under

http://www.freshupnow.com/movie.php?moviename=A+Flat



我想将此网址改写为



I want to rewrite this URL as under

http://www.freshupnow.com/movies/A-Flat



.htacess文件在我的根目录中
我在.htaccess中编写了以下代码以重写URL



The .htacess file is in my root directory
I have write the following code in .htaccess to rewrite the URL

Options +FollowSymlinks
RewriteEngine On  #Turn on the rewriting engine

RewriteRule ^movies/([A-Za-z0-9-]+)/?$ movie.php?moviename=$1 [NC,L]



但这是行不通的.它甚至不会引发任何错误.
我很担心任何人都可以解决这个问题.

注意:((我已经与托管公司联系,他们已经验证了有关.htaccess和RewriteRule的所有功能均已启用并从他们的角度开始工作,这意味着问题在我这方面,但我没有得到什么问题)



But It is not working. It even does not raise any error.
I am much worried. Can any one solve this problem.

Note: (I have contacted to my hosting company and they have verified that every thing regarding .htaccess and RewriteRule is enabled and working from their part, it means that problem is at my part, but I am not getting what is the problem)

推荐答案




但这是行不通的.它甚至不会引发任何错误.
我很担心任何人都可以解决这个问题.

注意:((我已经与托管公司联系,他们已经验证了有关.htaccess和RewriteRule的所有功能均已启用并从他们的角度开始工作,这意味着问题在我这方面,但我没有得到什么问题)



But It is not working. It even does not raise any error.
I am much worried. Can any one solve this problem.

Note: (I have contacted to my hosting company and they have verified that every thing regarding .htaccess and RewriteRule is enabled and working from their part, it means that problem is at my part, but I am not getting what is the problem)



这篇关于RewriteRule不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:58