How to configer .htaccess file

Discussion in 'Site & Server Administration' started by zhb, May 6, 2009.

  1. #1
    Hi,
    I want to re-write domain.com/videos.php?q=f&f=/FOLDER NAME to domain.com/folder-name.html Please Tell me how it is possible.

    it will be your highness if you make and PM/reply that coding of .htaccess file here..

    Billions of Thanks !
     
    zhb, May 6, 2009 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Camay123, May 6, 2009 IP
  3. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    If you really dont wish to learn then only please see below





    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ videos.php?q=$1 [L,QSA]
     
    sreyas, May 9, 2009 IP
  4. zhb

    zhb Active Member

    Messages:
    572
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #4
    You Given Code will re-write .html pages right ? I mean Will this code re-write the the domain.com/videos.php?q=f&f=/FOLDER NAME to domain.com/folder-name.html
     
    zhb, May 10, 2009 IP