1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I re-write a single URL with .htaccess?

Discussion in 'BlackHat Lounge' started by xoxxx, Oct 10, 2011.

  1. xoxxx

    xoxxx Regular Member

    Joined:
    Oct 9, 2009
    Messages:
    421
    Likes Received:
    140
    I want to make a single url appear differently in browsers.

    Right now it is:
    Code:
    domain com/article-this-is-the-article-aweawe-1-i-ww.html
    and I want it to be:
    Code:
    domain com/article-1.html

    How do I create a re-write rule in my .htaccess for this?

    Thanks!
     
  2. xoxxx

    xoxxx Regular Member

    Joined:
    Oct 9, 2009
    Messages:
    421
    Likes Received:
    140
    any help?
     
  3. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    I don't know much, but I have always just forwared it when i needed it changed...

    Redirect /article-this-is-the-old-page.html /this-is-the-new-page.html

    idk if you can just change it?? but again, I'm not a coder...
     
  4. xboxps3wow

    xboxps3wow Power Member

    Joined:
    Jan 15, 2010
    Messages:
    737
    Likes Received:
    239
    Occupation:
    student
    Location:
    Chicago
  5. xoxxx

    xoxxx Regular Member

    Joined:
    Oct 9, 2009
    Messages:
    421
    Likes Received:
    140
    I dont want to redirect the url to a different one, I just want the current long url to appear shorter in the browser..