Re: ReDirect question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux