View Single Post
  #5  
Old 03-19-2014, 06:18 AM
  Luisv's Avatar 
Luisv Luisv is offline
 

Member
  
Join Date: Oct 2005
Location: Nebraska
Posts: 20
 

Default Re: Xcart 5 login on Home Page

Wow. Ok. Would you suggest a redirect via the .htaccess? Or do you have a better solution. When I code to redirect in my .htaccess file I get errors. By the way. THANK YOU so much for your help. I cannot believe that you would take time to help me. Thank again.

Here's my current .htaccess file:

# vim: set ts=2 sw=2 sts=2 et:
#
# Apache/PHP settings
#
# @author Qualiteam software Ltd <info@x-cart.com>
# @copyright Copyright (c) 2010-2014 Qualiteam software Ltd <info@x-cart.com>. All rights reserved
# @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement
# @link http://www.x-cart.com/


Options -Indexes
DirectoryIndex cart.php
FileETag none

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule (^|/)\. - [F]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^((([/_a-z0-9-]+)/)?([_a-z0-9-]+)/)?([_a-z0-9-]+)(\.(htm|html))?$ cart.php?url=$5&last=$4&rest=$3&ext=$7 [NC,L,QSA]

#RewriteBase ____WEB_DIR____
</IfModule>

<IfModule mod_expires.c>

# Expire images/js/css header
ExpiresActive On
ExpiresDefault A0

# Images expires in 2 weeks
ExpiresByType image/png A1209600
ExpiresByType image/gif A1209600
ExpiresByType image/jpg A1209600
ExpiresByType image/jpeg A1209600
ExpiresByType image/ico A1209600
ExpiresByType image/x-icon A1209600

# CSS/JS now work with dynamic unique query string. 1 year expires
ExpiresByType text/css A31104000
ExpiresByType text/javascript A31104000
ExpiresByType application/javascript A31104000

</IfModule>
__________________
Luis Villamonte
Computer Systems Engineer
Microsoft and CompTIA Certified
www.MagicKits.com
X-cart 5.0.12
Reply With Quote