.htaccess - How to make htacces pattern like that -
how can implement pattern in htacces. main file dashboard.php. 1 variable constant , optional. that's idea:
from:
dashboard.php?view=foo&var1=bar&var2=something....... to:
dashboard/foo?var1=bar&var2=something..... i'm not @ writing conditions .htacces. can me this? thanks!
you can use rule in site root .htaccess:
optiona -multiviews rewriteengine on rewriterule ^(dashboard)/([\w-]+)/?$ $1.php?view=$2 [l,qsa,nc]
Comments
Post a Comment