如何使网站的SEO友好?

问题描述:

the urls are like this https://example.com/xyz.php

i want it to change

https://example.com/xyz

PLease give me answer how can i create a htacess file

网址如下所示 https://example.com/xyz.php p>

我想要更改 p>

https://example.com/xyz p>

请告诉我如何创建一个 htacess文件 p> div>

For you to make your .htaccess file work with URL rewriting, your Apache HTTP Server must have a mod_rewrite, and use these directives in your .htaccess file:

RewriteEngine on
RewriteRule ^/([a-zA-Z0-9_-]+)$ /$1.php [L]