.htaccess rewrite urls - quickly

Discussion in 'Programming' started by blade_922, Nov 17, 2011.

  1. #1
    Having trouble setting this up with myself, so if someone can re-write the urls for me would be much appreciated.

    It is for a wordpress site page using a custom template page. Contact via PM, people who know what they are doing.

    Kind Regards
     
    blade_922, Nov 17, 2011 IP
  2. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    As Seller:
    100% - 6
    As Buyer:
    100% - 7
    #2
    Simply put, Apache scans all incoming URL requests, checks for matches in our .htaccess file and rewrites those matching URLs to whatever we specify. something like this..

    all requests to whatever.htm will be sent to whatever.php:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^(.*)\.htm$ $1.php [NC]
     
    KangBroke, Nov 17, 2011 IP