10+ Mod_Rewrite Rules You Should Know

Advertisement

10+ Mod_Rewrite Rules You Should Know

Mod_rewrite is an Apache-based rewrite engine for dynamically rewriting URLs. It’s built into Apache servers natively, though not enabled by default. It’s capable of functions beyond simple rewrites, though, some of which are included below. Turn Mod_Rewrite On Mod_rewrite is used through your .htaccess file. Place the following code at the beginning of your .htaccess file to turn mod_rewrite on: RewriteEngine on (Don’t forget that .htaccess commands are case-sensitive.) This code needs to be entered at the beginning of any .htaccess file using mod_rewrite…

Read the full post ⇒
Source: Noupe
Tags: , ,
Posted under: Development, PHP
Related Tweets
Related News from Digg
Comment (RSS)  |  Trackback

Share this post

Leave a Reply