开发者

Default Page Display in Address Bar using .htaccess

开发者 https://www.devze.com 2023-01-06 21:32 出处:网络
I wanted a htaccess file which would set the Default page for a directory and also display the file name in the address bar.

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

精彩评论

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