This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » can someone please explain this HTACCESS code
can someone please explain this HTACCESS code [message #100985] Tue, 15 June 2010 15:43 Go to next message
Dvir  is currently offline Dvir
Messages: 33
Registered: January 2009
Location: Israel
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ web/index.php/$1 [QSA,L]

Please for once and for all someone explain how it works and what every line means...
my symfony project:
Dvir Levanon Programmer
Re: can someone please explain this HTACCESS code [message #101790 is a reply to message #100985 ] Tue, 29 June 2010 21:55 Go to previous message
Messages: 21
Registered: January 2006
Location: Paris
Junior Member
This forum is about symfony.

You should have a look to apahce documentation here for mod_rewrite:

Romain Dorgueil
PHP Coder and linux enthusiast
Previous Topic:Issues with: Uncaught exception 'InvalidArgumentException' with message 'The plugin "sfGuardPlu
Next Topic:Netbeans with MAMP on Mac
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software