WEB How do I do this with .htaccess?

Discussion in 'OT Technology' started by zaphod, Jun 13, 2008.

  1. zaphod

    zaphod Smashing Treats!

    Joined:
    Jan 19, 2003
    Messages:
    18,213
    Likes Received:
    0
    Location:
    Betelgeuse
  2. drpepper

    drpepper Active Member

    Joined:
    Nov 13, 2006
    Messages:
    38,076
    Likes Received:
    2
    Location:
    San Antonio
  3. Josh

    Josh Guest

    .htaccess:

    Code:
    
    Options +FollowSymlinks
    RewriteEngine on
    
    RewriteRule ^products products.htm
    RewriteRule ^about about.htm
    
    
     
  4. deftoned29

    deftoned29 keke

    Joined:
    Jul 1, 2006
    Messages:
    211
    Likes Received:
    0
    that doesnt seem to work.. does it have to be different if it's PHP files? (I ended up using PHP instead of .htm)

    Also-- what does the rule look different if I want to rename /index.php?
    Does that mean it would be blank?

    RewriteRule ^products products.php
    RewriteRule ^ index.php
     

Share This Page