.htaccess <IfModule mod_rewrite.c>

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess <IfModule mod_rewrite.c>

    can anyone tell me what does this .htacces code block do ?
    PHP Code:
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule . /index.php [L]
    
    </IfModule> 
    

    #2
    Originally posted by arpan.rnc View Post
    can anyone tell me what does this .htacces code block do ?
    PHP Code:
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule . /index.php [L]
    
    </IfModule> 
    
    it will redirect all get request to index.php if the requested file of dir does not exists.

    Comment

    Working...
    X