简体   繁体   English

php .htaccess mod_rewrite问题

[英]php .htaccess mod_rewrite problem

嗨,朋友,有一些问题,我需要通过.htaccess将http://localhost/joomla/index.php?option = com_myblog转换http:// localhost / joomla / blog吗?

If I'm not mistaken, Joomla by default ships with an htaccess.txt file that contains all the necessary script to do that. 如果我没有弄错的话,Joomla默认附带一个htaccess.txt文件,其中包含所有必要的脚本。 You just need to rename the file to .htaccess and enable the "friendly url" option in your sites settings. 您只需将文件重命名为.htaccess并在网站设置中启用“友好网址”选项即可。

http://www.noupe.com/php/10-mod_rewrite-rules-you-should-know.html ........ .htaccess should be in com_myblog folder other wise url mapping will not work like in noupe post it says URLs are Always Relative. http://www.noupe.com/php/10-mod_rewrite-rules-you-should-know.html ........ .htaccess应该在com_myblog文件夹中其他明智的url映射不会像在noupe中那样工作发布它说URL始终是相对的。 problem solved thanks for anybody response 问题解决了,谢谢大家的回应

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM