开发者

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

开发者 https://www.devze.com 2023-04-01 21:05 出处:网络
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开发者_运维知识库

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

精彩评论

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