0
我想为我的主页创建一个SEO友好的URL。例如,我希望example.com?url=hello-world成为example.com/hello-world。我目前的.htaccess有以下几点:.htaccess搜索引擎优化友好网址
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
它正确地删除PHP文件扩展名,但我怎样才能让这个它也可以生成主页的搜索引擎友好的网址?该文件是index.php。