how do i make this mod rewrite

Discussion in 'Apache' started by mani, Dec 1, 2006.

  1. #1
    Hello,
    I am not very much experianced in mod rewrites so please tell me how do i perform this job

    I have installed phplinkdirectory which have following code in its .htaccess file

    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l 
    RewriteRule .* index.php [QSA,L] 
    
    
    Code (markup):
    I have added another page called "details.php" in root directory which shows the details of link seperatly. And i have URLs something like

    http://www.mydomain.com/details.php?linkID=12

    I want this URL to be simplified

    http://www.mydomain.com/details/12

    I tried my best but can not make this happen, please guide me if anyone can made a line of mod rewrite

    Thanks
     
    mani, Dec 1, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteRule ^details/([^.]+)$ details.php?linkID=$1 [L]
     
    Nintendo, Dec 1, 2006 IP