Missing CSS file and images after URL rewrite

后端 未结 3 1796
梦毁少年i
梦毁少年i 2020-12-05 11:46

I\'m trying to make user friendly URL using mode rewrite. My problem is, that after giving category like \'name\' to my URL, when I call the page using new URL, it can\'t lo

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 12:35

    you have to define the base path or the server view path in the connection.php and whenever u want that path, make that global. then that variable will b called and the css or images will take the whole path.

    for example $SVP="http://www.example.com/"

    global $SVP; echo $SVP;

    so

提交回复
热议问题