Currently running instiki in apache. I am trying to get rid of the
foo.bar.com/mywiki/published/HomePage stuff into foo.bar.com/HomePage.
I have been trying to get this to work with apaches rewrite rules with
no luck. I looked into the routes.rb and couldn''t figure that out
either.
I know this has to be possible under apache. my apache config looks like this:
<VirtualHost *:80>
ServerName foobar.xyz.com
DocumentRoot /var/www/sites/xyz/help/public
DefaultInitEnv RAILS_ENV production
RewriteLog "/var/www/sites/xyz/help/rewrite.log"
RewriteLogLevel 2
<Location />
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails
application failed to start properly"
</Location>
<Directory "/var/www/sites/xyz/help/public/">
Options Indexes +FollowSymLinks +ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
any help would be greatly appreciated.