RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^bus:7777\ [NC] RewriteRule (.*) http://bus:7777/$1 [R=301,L]
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
bus
02/03/16 13:57:03
Apache/2.2.31 (Win32)
This question has been answered by cove3010. See the first response.
RewriteEngine On RewriteBase /
Have you enabled rewrites by adding this to the .htaccess file, before the rewrite conditions in your example?Unfortunately yes, first block in attached file:
RewriteEngine On RewriteBase /
# MODX supports Friendly URLs via this .htaccess file. You must serve web # pages via Apache with mod_rewrite to use this functionality, and you must # change the file name from ht.access to .htaccess. # # Make sure RewriteBase points to the directory where you installed MODX. # E.g., "/modx" if your installation is in a "modx" subdirectory. # # You may choose to make your URLs non-case-sensitive by adding a NC directive # to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC] RewriteEngine On RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
<base href="[[++site_url]]" />
ls /etc/apache2/mods-enabled | grep rewrite
rewrite.load
a2enmod rewrite
<Directory "project/path"> Order allow,deny Allow from all AllowOverride All </Directory>
service apache2 restart
LoadModule rewrite_module modules/mod_rewrite.so