.htaccess hide question mark

Hello sitepoint comunity,
i have problem with .htaccess redirection.
Here is a link in site :
<a href=“norma/neco1/neco2/neco3”>LINK</a>

Here is a .htaccess code :

RewriteEngine On
RewriteBase /
RewriteRule ^/?index.php / [R=301,L]

RewriteRule ^norma/([^/]+)/([^/]+)/([\\d\\.]+) /index.php?norma-$1-$2-$3.html [NC,L]

Link now look like :
eshop.mydomain.com/?norma-something1-something2-something3.html

And I am need look like this:
eshop.mydomain.com/norma-something1-something2-something3.html

Please help.
Thank you in advance.
ps. sorry for my bad english

m7,

The ? is a reserved character in URIs. It specifically separates the {REQUEST_URI} string from the {QUERY_STRING} so your desired URL can never work. Please refer to http://www.ietf.org/rfc/rfc2396.txt for allowed characters.

Regards,

DK

Ok, thank you.
Can you please tell me, how i can change htacces code for this situation ?
I am need send /norma/something1/something2/something3 in link (<a href=“/norma/something1/something2/something3”>LINK</a>)
And what i must make, if i need url http://eshop.mydomain.com/norma-something1-something2-something3

Thank you in advance.

M7,

If you create a link like that, you need to match norma/something1/something2/something3, capture those value and redirect them to … where?

You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It’s helped may members and should help you, too.

Regards,

DK