Php Joomla SEF-如何从地址栏隐藏.html?
我用的是Joomla 3.x。已经激活SEF链接,URL重写和添加后缀到URL。试图从我的链接中隐藏.html扩展名。例如 发件人:website.com/contact.html 收件人:website.com/contact 我尝试编辑.htaccess以访问:Php Joomla SEF-如何从地址栏隐藏.html?,php,.htaccess,joomla3.0,Php,.htaccess,Joomla3.0,我用的是Joomla 3.x。已经激活SEF链接,URL重写和添加后缀到URL。试图从我的链接中隐藏.html扩展名。例如 发件人:website.com/contact.html 收件人:website.com/contact 我尝试编辑.htaccess以访问: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
但它不起作用。有什么想法吗
谢谢 在Joomla SEO设置中禁用向URL添加后缀
嗨,是的,这很有效!由于某种原因,“向URL添加后缀”以前不起作用。这是404。但现在它工作得很好@卡肯克斯很高兴能帮助马特。