.htaccess mod-rewrite like

Can someone tell me how to write mod-rewrite.htaccess so that the url displays ONLY the domain name at all times? No matter what page the user is on, I just want to show the domain name.

Thanks in advance.

+3
source share
2 answers

It's impossible. How should all different resources be identified, if not a URI?

The only thing you can do is load your pages into a frame.

+2
source

1) as others noted, you can use frames / frames;

2) you can use session / cookie with Ajax without a refresh page;

3) Ajax , ;

4), mod_rewrite, + , , ; , www.example.com:

  • link1 - www.example.com/path1
  • link2 - www.example.com/path2
  • link3 - www.example.com/path3

, www.example.com, / cookie ..

mod_rewrite : google.

+1

Source: https://habr.com/ru/post/1731238/


All Articles