need help on rewrite

Discussion in 'Linux Support: Debian, Ubuntu, SolusOS etc' started by paddyku, Mar 24, 2018.

  1. paddyku

    paddyku New Member

    hi guys , im new with litespeed just installed on my 1st server ,
    and i need help with rewrite rules ,

    usually on nginx my rewrite rule is :

    location / {
    try_files $uri $uri/ /index.php?$args;
    rewrite ^/videoplayback$ /videoplayback.php;
    }

    i want to rewrite videoplayback?idwhich is shown to visitors to videoplayback.php?id ,

    any help would be very appriciate .

    thank you!
     
  2. paddyku

    paddyku New Member

    nvm i had it done

    just add
    RewriteEngine on
    RewriteRule ^/videoplayback /videoplayback.php$1 [R=301,L]

    thank you!
     

Share This Page