简体   繁体   中英

Make Index.php?page=loripsum to /#/loripsum

I would like to change

http://www.loremipsum.com/index.php?page=loripsum

to

http://www.loremipsum.com/#/loripsum .

Is that somehow possible with mod-rewite?

No.

http://www.loremipsum.com/loripsum would be possible, but the part after the # ( fragment id ) will not even be sent to the server. There is no way for Apache or any other web server to read this part of the URL with a regular browser.

That pattern you describe uses client-side JavaScript to get the corresponding resources and display them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM