www.webdeveloper.com
Results 1 to 3 of 3

Thread: .htaccess hide question mark

  1. #1
    Join Date
    Aug 2012
    Posts
    2

    .htaccess hide question mark

    hi webdeveloper users,
    i have problem with my .htaccess code

    in site i have link
    <a href="norma/something1/something2/something3">LINK</a>

    in .htaccess i have
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^/?index.php / [R=301,L]
    
    RewriteRule ^norma/([^/]+)/([^/]+)/([\d\.]+) /index.php?norma-$1-$2-$3.html [NC,L]
    I have problem with quetion mark ("?").
    I am need link look like http://eshop.mydomain.com/norma-some...omething3.html

    But my link look like now
    http://eshop.mydomain.com/?norma-something1-something2-something3.html

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

  2. #2
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    What you are seeking are QSA - Query String Appends
    http://wiki.apache.org/httpd/RewriteQueryString

    HTML Code:
    RewriteEngine On
    RewriteRule ^/page /page?

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    I know, what make QSA.
    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-some...ng2-something3

    Thank you in advance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles