Hi all,
MODx Evolution 1.0.14
YAMS 1.1.9
Moving to Apache Webserver
I am looking to move my site from an IIS hosted web server to Apache and have the a bit of a problem regarding friendly urls. My site is multilingual and the .htaccess file is as follows -
# Friendly URLs
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]
RewriteRule ^ie$ ie/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ie/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
with the en - english contennt and is - Irish content. All working well on IIS but when I am looking to use the following in the apache httpd-vhosts.conf file as my site is within a folder off the root I get the http 500 Internal Server Error. The httpd-vhosts.conf being as follows:
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot "c:/wamp/www/mysite.ie"
ServerName ww1.mysite.ie
# ServerAlias www.dummy-host.example.com
ErrorLog "logs/ww1.mysite.ie-error.log"
CustomLog "logs/ww1.mysite.ie-access.log" common
# Rewrite Rules #####################
RewriteEngine On
RewriteRule ^/mysite.ie/(.*) / [R=301,L]
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^ie$ ie/ [R=301,L]
RewriteRule ^en$ en/ [R=301,L]
# The Friendly URLs part
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^ie(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^en(.*)$ index.php?q=$1 [L,QSA]
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
#RewriteRule ^/(.*)$ /index.php?q=$1 [L,QSA]
# end Rewrite Rules #################
</VirtualHost>
Any ideas? I'm not familiar with this at all. Any pointers would be greatly appreciated!
Thanks for your patience.