Do i need to set 301 redirection URL?

Discussion in 'Apache' started by Jalpari, Feb 23, 2009.

  1. #1
    I move my wordpress blog to root directory and now I want to keep index.htm page exist at the server but whenever someone request for index.htm or site page he must go to index.php page. :D How to do it ?

    When index.htm page exist, in browser i automatically redirects towards index.htm when i delete index.htm then redirects towards index.php :rolleyes:

    How to set 301 redirection URL? site is in my sig (funny love sms)
     
    Jalpari, Feb 23, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    RewriteEngine On
    RewriteRule ^index.htm$ index.php [R=301,L]
     
    buldozerceto, Feb 23, 2009 IP
  3. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #3
    Here is my wordpress code in .htaccess file i place ur code but its not working. please embed this code in wordpress.

    It was giving error index.php file is not exist if i remove wp rewrite rule, and i i place both codes in .htaccess file then nothing happen just redirecting towards index.php file becoz i rename my index.htm file as iindex.htm (temp)

     
    Jalpari, Feb 23, 2009 IP
  4. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #4
    LbR, Feb 24, 2009 IP
  5. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #5
    Jalpari, Feb 24, 2009 IP
  6. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #6
    One thing if you are Lan User in Pakistan. Using 1 External Ip on 100 Lan Connections you cannot update your cache yourself. Did you tried with proxy. Similar problem with me. It takes time to update as cache is cleared around once in a week.
     
    LbR, Feb 24, 2009 IP
  7. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #7
    Yes i am using Lan. So how to access via proxy or u talking about accessing cpanel via proxy or filezilla. (I think cpanel) :D
     
    Jalpari, Feb 24, 2009 IP
  8. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #8
    LbR, Feb 24, 2009 IP