请先告诉我: http://www.example.com/en.html/spirit-levels/type-70
以上网址是否对SEO友好?
如果没有,请告诉我如何使用.htaccess从上面的网址中删除.html。
由于
答案 0 :(得分:0)
Can I know which framework you are using
or used below code in .htaccess placed in root of your application
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
#.php .html or other
if you are using any framework like codeigniter just open config.php in config folder and use below code
$config['url_suffix'] = ''; // make it blank