Hi,There are in your .htaccess file 2 instructions "RewriteEngine": the first states "on", the second states "off". They are around your rewrite rules, so I try to guess that you meant to switch the rewrite engine on, do the rewrite, and then switch it off. But, afaik the last instruction wins and disables the rewrite engine: no action and no logging...
Remove the second one or comment it, and let us know. Hope this helps, Zimmi (Philippe) Le 28.06.2015 22:02, James Moe a écrit :
Hello, httpd v2.4.10 linux v3.16.7-21-desktop x86_64 I am consolidating a discussion started in message "ReDirect question". The issue there is that mod_rewrite is simply ignored. Below are the contents of .htaccess and vhost. In both .htaccess and vhost the Rewrite* directive are simply ignored as though they are commented out. (If I make a syntax error, "Internal Server Error" occurs. Otherwise, nothing.) On our public site which is running httpd v2.2, both rewrites perform as expected. Kurtis Rader and Eric Covener have patiently made a number of suggestions to diagnose the problem. No joy, yet. What I am doing: We are moving our business suite to a new service and we are using their shopping cart. The rewrites will point existing category and specific product URLs to corresponding locations at the new site based on the query string. ----[ .htaccess ]---- # Options +ExecCGI +FollowSymLinks # Specific redirects first, then fallback # RewriteEngine on RewriteCond %{QUERY_STRING} =app=ecom&ns=catshow&ref=books RewriteRule ^ https://ya250.infusionsoft.com/app/storeFront/handleStoreFrontLink?displayType=Category&id=1&displayName=Books [R=301] # RewriteEngine off # # The fallback. Will be changed to point to ya250.... later. Redirect /catalog/ https://sma-v3.sma.com/clickcart/ # ----[ end ]---- ----[ vhost ]---- # 20100606: Local copy of the sohnen-moe.com Version 3 site # <VirtualHost *:80> ServerAdmin jimoe@xxxxxxxxxxxxxx ServerName sma-v3.sma.com DocumentRoot "/data01/t-drv/websites/sma-v3" ErrorDocument 404 /404.php ErrorDocument 410 /410.php ErrorDocument 401 /401.php ErrorLog "/data01/t-drv/websites/.logs/sma-v3-error_log" CustomLog "/data01/t-drv/websites/.logs/sma-v3-access_log" common <Directory "/data01/t-drv/websites/sma-v3"> AllowOverride FileInfo Authconfig Options Options Indexes FollowSymLinks MultiViews AddHandler application/x-httpd-php .php MultiviewsMatch Handlers Order allow,deny Allow from all AllowOverride All # # Always use a secure connection (at SMA site, this is in .htaccess) RewriteEngine On RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] </Directory> <Files *> Forcetype application/x-http-php </Files> <Files *\.*> Forcetype none </Files> </VirtualHost> ## ## SSL Virtual Host Context ## <IfDefine SSL> # # Some MIME-types for downloading Certificates and CRLs # AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl <IfModule mod_ssl.c> <VirtualHost *:443> # General setup for the virtual host DocumentRoot "/data01/t-drv/websites/sma-v3" ServerName sma-v3.sma.com ServerAdmin jimoe@xxxxxxxxxxxxxx ErrorLog "/data01/t-drv/websites/.logs/sma-v3s-error_log" CustomLog "/data01/t-drv/websites/.logs/sma-v3s-access_log" common TransferLog "/data01/t-drv/websites/.logs/access_log" ErrorDocument 404 /404.php ErrorDocument 410 /410.php ErrorDocument 401 /401.php <Directory "/data01/t-drv/websites/sma-v3"> AllowOverride Authconfig AllowOverride All Options -ExecCGI </Directory> SSLEngine on SSLCertificateFile "/data01/t-drv/websites/.conf/ssl/sma-v3-site.crt" SSLCertificateKeyFile "/data01/t-drv/websites/.conf/ssl/sma-v3-site.key.pem" SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL SSLProtocol ALL -SSLv2 SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost> </ifmodule> </ifdefine> ----[ end ]----
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx