Click here to Skip to main content
15,881,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
Im a beginner in PHP. im working on URL Rewrite rule. i have some question related to this.

What this rewrite rule means??
1)
PHP
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php

2)
PHP
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

3)
PHP
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

4)
PHP
RewriteCond %{QUERY_STRING} !^$
RewriteRule .* https://www.xyz.com%{REQUEST_URI}? [R=301,L]


Thank you :)
Posted

1 solution

All answers are given over here : http://www.sitepoint.com/guide-url-rewriting/[^]
(And ya I'm not professional.. I'm student of Bachelor)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900