.htaccess RewriteRule : add dash(-) to my domain -


i want modify urls from:

domain/content.php?page=x 

to:

domain/x-y 

i put code in file .htaccess:

rewriterule ^([a-za-z0-9\-]+)$ content.php?page=$1 [l] 

can me please?

if don't want y part of url, don't need create grouping matches it:

rewriterule ^([^-]+)- /content.php?page=$1 [l] 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -