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。