我是Joomla和WAMP环境的新手.我正在使用WAMP环境:
我想用Joomla SEF URL启用mod_rewrite但它不能一起工作.
如果我将"SEF URL"和"将后缀添加到URL"设置为是,则可以.
结果:/index.php/page.html
如果我将'mod_rewrite'和'添加后缀添加到URL'设置为是,它不会给出任何错误(不确定它是否按照它假设的方式工作).
结果:/index.php?option=com_content&view=article&id=3&Itemid=5
如果我将"SEF URL"和"mod_rewrite"设置为"是",则会给出"404 Not Found"错误.
结果:未找到| /pagename在此服务器上找不到请求的URL
如果我设置'SEF URL'+'mod_rewrite'+'将后缀添加到URL'为是,而不是它给我"404 Not Found"错误.
结果:未找到| /pagename.html在此服务器上找不到请求的URL
我使用Joomla提供的默认.htaccess代码如下:
## Can be commented out if causes errors, see notes above. Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the …