开发者

URL rewriting going from www.example.com/blog/blog.php to just www.example.com/blog/

I have a site that to get to the blog section I have www.example.com/blog/blog.php and I would like it to use www.example.com/blog/ The folder structure I have is that blog.php is insi开发者_运维知识库de a folder called blog. Do I just rewrite the blog.php to be blog and add it to the top level?


As I see it you want to show blog.php if user typed www.example.com/blog/ in the address bar. You would try renaming blog.php to index.php (You didn't provided any extra information about your web server; I assume it loads index.php as start page by default).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜