The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htacess redirect

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

  1. gigamike

    gigamike Member

    Joined:
    Jan 14, 2008
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,697
    Likes Received:
    657
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page