How to hide params passed in url using .htaccess

前端 未结 3 1863
天命终不由人
天命终不由人 2020-12-06 03:12

I have a peculiar situation, my website is like

www.example.com/page.php?url=homepage
. I am trying to use .htaccess file to make url look like

www.examp         


        
3条回答
  •  孤街浪徒
    2020-12-06 03:55

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^page/(.*)/$ /page.php?url=$1 [L]
    

提交回复
热议问题