Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Joomla SEF-如何从地址栏隐藏.html?_Php_.htaccess_Joomla3.0 - Fatal编程技术网

Php Joomla SEF-如何从地址栏隐藏.html?

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 ^(.*

我用的是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 ^(.*)$ $1.html
但它不起作用。有什么想法吗

谢谢

在Joomla SEO设置中禁用向URL添加后缀


嗨,是的,这很有效!由于某种原因,“向URL添加后缀”以前不起作用。这是404。但现在它工作得很好@卡肯克斯很高兴能帮助马特。