Zen Cart Logo
Forums / General Questions / mydomain.com/store/ VS www.mydomain.com/store/

mydomain.com/store/ VS www.mydomain.com/store/

Locked

Views: 1,705

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Mar 2008, 3:40 AM
#1
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

mydomain.com/store/ VS www.mydomain.com/store/

I'm trying to get consistent behavior across browsers when it come to the URL of my site because this seem to be affect .htc file access which makes IE6 act a little 'weird' :unsure:- css menus not working on initial load but work after navigating (includes/csshover.htc)

  • A transparent png fix doesn't work on initial load but works after navigation. (includes/iepngfix.htc)
  • Access denied error on both .htc filescurrently my .htaccess file in my nahidfashions.com/ root is as follows:
Options All -Indexes

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^nahidfashions\.com [NC]
RewriteRule ^(.*)$ http://www.nahidfashions.com/$1 [R=permanent,L]
```the .htaccess in my nahidfashions.com/boutique/ root is as follows

Options +FollowSymLinks
RewriteEngine On
RewriteBase /boutique/

*** SEO RULES REMOVED FOR SIMPLICITY ***

the following makes sure the correct mime type is sent for the .htc file

AddType text/x-component .htc

define('HTTP_SERVER', 'http://nahidfashions.com');
define('HTTPS_SERVER', 'https://nahidfashions.com');


What should be changed to make everything consistent and to ensure that my .htc files are accessed without error on all browsers?
10 Mar 2008, 9:54 AM
#2
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: mydomain.com/store/ VS www.mydomain.com/store/

My problem was that my includes/configure.php needed to be change to match the https://www.nahidfashions.com used in the other section.

It works now.

I hope this helps someone.

23 Mar 2008, 5:49 PM
#3
ariaeko avatar

ariaeko

New Zenner

Join Date:
Mar 2008
Posts:
2
Plugin Contributions:
0

Re: mydomain.com/store/ VS www.mydomain.com/store/

I am having a similar problem regarding iepngfix and a parked domain. If you go to my root domain the png fix works fine but if you go to the site via the parked domain the png fix does not work until you have clicked a link. It sounds like your fix may be what I need to do to my site as well. Would you mind explaining a bit more in detail what you had done to correct this problem? Any help would be greatly appreciated!

24 Mar 2008, 2:38 AM
#4
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: mydomain.com/store/ VS www.mydomain.com/store/

Ariaeko:

I am having a similar problem regarding iepngfix and a parked domain. If you go to my root domain the png fix works fine but if you go to the site via the parked domain the png fix does not work until you have clicked a link. It sounds like your fix may be what I need to do to my site as well. Would you mind explaining a bit more in detail what you had done to correct this problem? Any help would be greatly appreciated!

If you remember that the includes/configure.php file has setting for the HTTP_SERVER. This should match whatever you have in your .htaccess

So what I did was make sure that my HTTP_SERVER was defined as http://www.nahidfashions.com and not http://nahidfashions.com in configure.php.

define('HTTP_SERVER', 'http://www.nahidfashions.com');
  define('HTTPS_SERVER', 'https://www.nahidfashions.com');

In the in the .htaccess file I made sure the Rewrite was set to the same thing.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^nahidfashions\.com [NC]
RewriteRule ^(.*)$ http://www.nahidfashions.com/$1 [R=permanent,L]

After I did this the problem went away. Without this synchronization .htc files didn't work.

I hope this is clear enough.