mod rewrite - .htaccess file doesn't work correctly when I change my url -


i want change url from:

 www.domain.com/includes/edit.php?products=cloth  

to:

 www.domain.com/products/cloth 

i'm using code right it's not working:

 rewriteengine on   rewriterule ^products/([a-za-z0-9-]+)/?$ edit.php?q=$1 [nc,l] 

try :

rewriteengine on   rewritecond %{request_filename} !-d [or] rewritecond %{request_filename} !-f rewriterule ^products/([a-za-z0-9-]+)/?$ /includes/edit.php?products=$1 [qsa,nc,l] 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -