Hello,
Well I'm beginning to think that the problem may be how this particular server is configured. Please correct me if I'm wrong but having a directory structure of:
Code:
/SiteFolder/sub_folder/files.php
with the .htaccess file in the sub_folder and doing this simple rewrite (I show the <FilesMatch> directive in case it is causing problems):
Code:
#force download of pdf
<FilesMatch "\.(?i:doc|odf|pdf|rtf|txt)$">
Header set Content-Disposition attachment
</FilesMatch>
# Rewrite
RewriteEngine on
# rewrite the non-numeric text parameter to the single atom in the RegEx
RewriteRule ^rate/([A-Za-z0-9_]+)/ $rate.php?rs=$1 [L]
This should mean that if I use www.asite.com/sub_folder/rate/buttons that my $1 atom is 'buttons' and the RegEx replacement is the balance of the URL.
When I try this url then I get a 404 error that reports:
Code:
Not Found
The requested URL /var/www/SiteFolder/sub_folder/rate.php was not found on this server.
Any ideas as this should not be difficult!
And for completeness here is the virtual host that I've just altered the names for this post but it is structured this exact way.
Code:
<VirtualHost *:80>
DocumentRoot /var/www/ASite
ServerName www.asite.com
<Directory "/var/www/ASite">
Order Deny,Allow
allow from all
Options Includes FollowSymLinks
</Directory>
<Directory "/var/www/ASite/Ice_Rink">
Order Deny,Allow
allow from all
Options Includes FollowSymLinks
</Directory>
</VirtualHost>
Routes to this server come from a front-end Apache server. Here is the config
Code:
<VirtualHost *:80>
ServerName www.asite.com
ProxyPreserveHost On
ProxyPass / http://172.16.4.15/
ProxyPassReverse / http://172.16.4.15/
<Proxy http://172.16.4.15>
Allow from 172.16.4.15
</Proxy>
</VirtualHost>
Bookmarks