Using search engine and user friendly URLs

Comparing #1 with #2

Revision #2 was created by rainyjune rainyjune on Jun 2, 2010, 6:57:40 AM.

Add IfModule tag for .htaccess file.

Content

[...]
We need one more step in order to remove `index.php` from our URLs, i.e., configuring the Web server. For Apache HTTP server, as described in the [Definitive Guide](/doc/guide/topics.url), we need to place a file named `.htaccess` under the directory containing the entry script. The file should have the following content:

~~~
Options +FollowSymLinks
IndexIgnore */*
<IfModule mod_rewrite.c>
 
RewriteEngine on

# if a directory or a file exists, use it directly
[...]
# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
 
~~~

Please consult the user reference if you are using a different Web server.


Keeping DRY (Don't Repeat Yourself)
[...]