开发者

present a static page url as different url which is SEO friendly

I have developed a site, which ha开发者_StackOverflow社区s some static pages. Like explore, home, feedback.

The link for these goes as follows

website.com/views/explore.php

website.com/index.php

website.com/views/feedback.php

I want to write a different SEO URL for each of the URL mentioned above.

Is it possible ?

i.e. for example

website.com/views/explore.php should be convereted/visible as website.com/explore

website.com/views/feedback.php should be convereted/visible as website.com/give/feedback

and so on


You can use these mod_rewrite rules to rewrite requests to /explore and /give/feedback internally to /views/explore.php and /views/feedback.php:

RewriteEngine on
RewriteRule ^explore$ views/explore.php [L]
RewriteRule ^give/feedback$ views/feedback.php [L]


with .htaccess file you can change any url on your site. i love this file.


if you are hosting website in ISS the you can try IIS SEO toolkit. & set dynamic URL itself in IIS see the indepth explaination by Scott about Imporve SEO by SEO Toolkit

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜