fork download
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. Options All -Indexes
  4.  
  5. # ROUTER WWW Redirect.
  6. # RewriteCond %{HTTP_HOST} !^www\. [NC]
  7. # RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  8.  
  9. # ROUTER HTTPS Redirect
  10. RewriteCond %{HTTP:X-Forwarded-Proto} !https
  11. RewriteCond %{HTTPS} off
  12. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  13.  
  14. # ROUTER URL Rewrite
  15. RewriteCond %{SCRIPT_FILENAME} !-f
  16. RewriteCond %{SCRIPT_FILENAME} !-d
  17. RewriteCond %{REQUEST_URI} ^/site/ [NC]
  18.  
  19. RewriteRule ^ - [L]
  20. RewriteRule ^/?$ site/index.php [NC,L,QSA]
  21. RewriteRule ^joblisting$ site/joblisting.php [NC,L,QSA]
  22. RewriteRule ^job/$ site/job.php?id=$1 [NC,L,QSA]
  23. </IfModule>
Success #stdin #stdout 0.02s 24024KB
stdin
Standard input is empty
stdout
<IfModule mod_rewrite.c>
    RewriteEngine On
    Options All -Indexes
    
    # ROUTER WWW Redirect.
    # RewriteCond %{HTTP_HOST} !^www\. [NC]
    # RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    # ROUTER HTTPS Redirect
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    # ROUTER URL Rewrite
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/site/ [NC]
    
    RewriteRule ^ - [L]
    RewriteRule ^/?$ site/index.php [NC,L,QSA]
    RewriteRule ^joblisting$ site/joblisting.php [NC,L,QSA]
    RewriteRule ^job/$ site/job.php?id=$1 [NC,L,QSA]      
</IfModule>