DirectoryIndex index.php
#<VirtualHost *:80>
#ServerName www.myjcld.com
#DocumentRoot "D:/wamp/www.myjcld.com/public/"
# <Directory "D:/wamp/www.myjcld.com/public/">
# Options FollowSymLinks IncludesNOEXEC
# DirectoryIndex index.php
# AllowOverride All
# Allow from all
# </Directory>
#</VirtualHost>
#<IfModule sapi_apache2.c>
# php_value register_globals 0
# php_value magic_quotes_gpc 0
# php_value magic_quotes_runtime 0
# php_value magic_quotes_sybase 0
# php_value arg_separator.output "&"
# php_value default_charset "utf-8"
# php_value session.name "AK_SESSID"
#</IfModule>
# On some servers this directive might be needed
# Options +FollowSymLinks
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
# If your PhpOnRails Framework application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
# Alias /myrailsapp /path/to/myrailsapp/public
# RewriteBase /
# If you don't want The PhpOnRails Framework to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain requests
#
# Example:
# RewriteCond %{REQUEST_URI} ^/notrails.*
# RewriteRule .* - [L]
RewriteRule ^(.*/)?.(svn|git|hg|bzr)/ - [F,L]
ErrorDocument 403 "Access Forbidden"
RewriteRule ^mod_rewrite_test$ mod_rewrite_test_file.txt [L]
# Rewrite URLs of the form 'index.php?ak=x':
RewriteCond %{REQUEST_URI} !.(js|ico|gif|jpg|png|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !favicon.ico$
#RewriteRule ^?XDEBUG_SESSION_START=d+/?(.*)$ index.php?ak=$1 [L,QSA]
RewriteRule ^(.*)$ index.php?ak=$1 [L,QSA]
</IfModule>
ErrorDocument 500 "<h2>Apache server error</h2>Rails application failed to start properly"