Redirection of html through htaccess file

Discussion in 'Google' started by seomudda, Oct 4, 2007.

  1. #1
    Hi,

    I want to redirect html page to PHP pages through htaccess file.
    for example http://www.abc.com/abc.html to http://www.abc.com/cde.php

    Please help me.

    Thanks
     
    seomudda, Oct 4, 2007 IP
  2. Andrei P.

    Andrei P. Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want them redirected page by page us this:

    Redirect 301 /abc.html /cde.php

    Otherwise if you want to use rules, I wrote a tutorial on that a while ago:

    http://www.geekpedia.com/tutorial166_Creating-friendly-URLs-with-mod-rewrite.html

    You only need to modify the rules slightly to make them work with what you're looking for.
     
    Andrei P., Oct 4, 2007 IP