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.

htaccess question - rewrite pdf to html (with one condition)

Discussion in 'General Discussion' started by itcf, Jul 15, 2013.

  1. itcf

    itcf Registered

    Joined:
    Jul 14, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi. I have what seems like a "simple" .htaccess question, but I can't figure it out for the life of me:

    How do I change the suffix (301 redirect) of all pages ending in .pdf to .html - except when URL begins with "www.mydomain.com/pdf/"

    Thanks!
    Daniel
     
    #1 itcf, Jul 15, 2013
    Last edited: Jul 15, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page