httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Moe <ji...@sohnen-moe.com>
Subject Re: [users@httpd] ReDirect question
Date Sat, 27 Jun 2015 23:45:03 GMT
On 06/27/2015 04:36 PM, Kurtis Rader wrote:
> You still haven't shown us your .htaccess.
> 
  Here it is.
----[ .htaccess ]----
#
Options +ExecCGI +FollowSymLinks
#
# 20110723 jmm: Some RewriteRule's are in the vhost conf file.
#
# ---- begin infusionsoft
# 20150623 jmm: The transfer to InfusionSoft begins...
#  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,L,E=error-notes:qstring-matched]
#
RewriteEngine off
# ---- end infusionsoft
#
Redirect /catalog/ https://sma-v3.sma.com/clickcart/
#
----[ end ]----

----[ from the vhost file ]----
<VirtualHost *:80>
    ServerAdmin jimoe@sohnen-moe.com

    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
    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>

----[ end ]----

-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936


Mime
View raw message