I am trying more than 2h! and I give up How make .htaccess for this: I want mysite.com/abc from mysite.com/index.php?query=abc mysite.com/MYTEXT ===>>>> mysite.com/index.php?query=MYTEXT
to be redirected from mysite.com/index.php?query=MYTEXT to mysite.com/MYTEXT ... or just look like mysite.com/MYTEXT is a script ?
I want good links like mysite.com/abc and these links will run mysite.com/index.php?query=abc in fact thanks in advance
you want seo friendly url , mysite.com/dance, mysite.com/jazz e.t.c ... I'm sorry i don't know how i said , because if is a script like phpld (example) can't be done only with .htaccess
Sure it can... there's a sticky at the top of this section with hundreds of people asking exactly the same question as you and receiving answers. The short version is: RewriteRule ^abc$ index.php?query=abc [NC] Code (markup): You can do much smarter stuff with rewrites but that will give you what you want. If you want everything to go through index.php then you need a slight change: RewriteRule ^(.*)$ index.php?query=$1 [NC] Code (markup): Don't forget to turn the rewrite engine on in the first line of your .htaccess: RewriteEngine On Code (markup):