Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

htacess redirect

Discussion in 'Bind/DNS/Nameserver' started by gigamike, Feb 18, 2016.

  1. gigamike

    gigamike Active Member

    Joined:
    Jan 14, 2008
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    51
    Guys,

    maybe you can help me, i have this url domain.com/my_product_name.html and it has an htaccess redirect like this

    RewriteRule ^(.*)\.html$ products.php?q=$1&%{QUERY_STRING} [L,R=301]
    RewriteRule ^(.*)\.html/([\d]+)$ products.php?q=$1&page=$2&%{QUERY_STRING} [L,R=301]

    Questions:
    1. Why is the header still 302 even i set 301?
    2. is there anyway i can maintain the utm parameters i.e. domain.com/my_product_name.html?um_campaign=123&um_source=123

    Thanks in advance,

    Mike
     
    #1 gigamike, Feb 18, 2016
    Last edited by a moderator: Feb 18, 2016
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice