dtwd74916
2014-01-14 14:08
浏览 90
已采纳

PHP WAMP .HTACCESS如何重写URL?

I've the following URL: http://www.domain.com/content/index.php?filename=download-file.zip&visitorid=abcd&visitorval=xyz

And I want to access this script using the URL as following: http://www.domain.com/content/download-file.zip?visitorid=abcd&visitorval=xyz

I've enabled rewrite_module modules/mod_rewrite.so and I've added an ".htaccess" file to the "content" subdirectory above, but couldn't write the rules to use at the .htaccess file to get the above redirect working.

Thoughts?

图片转代码服务由CSDN问答提供 功能建议

我有以下网址: http://www.domain.com/content/index.php?filename=download-file。 zip& visitorid = abcd& visitorval = xyz

我想使用以下URL访问此脚本: http://www.domain.com/content/download-file.zip?visitorid=abcd&visitorval= xyz

我启用了rewrite_module modules / mod_rewrite.so并且我在上面的“content”子目录中添加了一个“.htaccess”文件,但是无法写入 在.htaccess文件中使用以使上述重定向工作的规则。

思考?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题