开发者

Default Page Display in Address Bar using .htaccess

I wanted a htaccess file which would set the Default page for a directory and also display the file name in the address bar.

For example:

In general, if index.html is the Index file, then typing the address http://www.example.com/ would be internally loading http://www.example.com/index.html but by default the /index.html is 开发者_Go百科not displayed in the address bar. How can we display it.

Like if user enters http://www.example.com then the address should change to http://www.example.com/index.html

Please Help

Thanks


Redirect from www.example.com to www.example.com/index.html, using mod_rewrite.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜