Mod rewrite not working. help me

Discussion in 'Apache' started by kks_krishna, May 12, 2007.

  1. #1
    HI,

    is the following enrty is correct:
    RewriteEngine on
    RewriteRule ^(.*).index.php index.html

    .index.php will converted as .html. is it correct?
    its not working for me.
     
    kks_krishna, May 12, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)\.html$ $1.php [L]
     
    Nintendo, May 12, 2007 IP
  3. kks_krishna

    kks_krishna Active Member

    Messages:
    1,495
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Thanks. I got the basic idea working for simple page. I will ask you doubts when i need help for complicated parameters.
     
    kks_krishna, May 12, 2007 IP
  4. kks_krishna

    kks_krishna Active Member

    Messages:
    1,495
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    80
    #4
    HI,

    How can i set the rules for my subdomain.
    For example my sub domain is :
    frames.htmlbeat.com

    how can i see the rules for the above sub domain
     
    kks_krishna, May 12, 2007 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #5
    Put the .htaccess file at subdomain.whatever.com/.htaccess
     
    Nintendo, May 12, 2007 IP