Forums / General Questions / Display index.php when URL is just www.mydomain.com

Display index.php when URL is just www.mydomain.com

Locked

Views: 2,582

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
29 Sep 2008, 3:00 PM
#1
motty avatar

motty

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Display index.php when URL is just www.mydomain.com

I have uploaded my site and noticed the index.php only displays when URL https://www.pushchairsnprams.com/shop is entered. I also need the index page to show when you just type in https://www.pushchairsnprams.com

Does anyone know how to do this?

Many thanks

29 Sep 2008, 3:16 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Display index.php when URL is just www.mydomain.com

What you've done is install ZC into a SUB-DIRECTORY of your website called "shop":-

https://www.pushchairsnprams.com/shop

A simple re-direct is a quick solution, but there are other implications in having your site located in a sub-directory, including the possibility of lower search engine rankings.

It is quite safe to have your shop in a sub-directory. Everything will work perfectly if your configure.php files are correctly set up (which it appears they are, as the site works).

However, if you do not intend to use your webroot for other website(s), you may want to consider moving the store up a level so that instead of having ZC reside in:-

https://www.pushchairsnprams.com/shop

it now resides in

https://www.pushchairsnprams.com

29 Sep 2008, 3:42 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Display index.php when URL is just www.mydomain.com

Moving zencart from directory to root is fine, IF you also alter
BOTH config files to reflect this change.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

29 Sep 2008, 3:49 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Display index.php when URL is just www.mydomain.com

Good observation, Misty !

(Us dyed-in-the-wool zenners often make assumptions that newbies would automatically know that the 2 configure.php would also need quick edits!)

29 Sep 2008, 4:11 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Display index.php when URL is just www.mydomain.com

fairestcape:

Good observation, Misty !

(Us dyed-in-the-wool zenners often make assumptions that newbies would automatically know that the 2 configure.php would also need quick edits!)
When replying to forum posts I always try and pretend
that even after 4 years using zencart, have never before seen query am answering,
but have probably answered exact same question many times.
:wink:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

30 Sep 2008, 1:07 AM
#7
motty avatar

motty

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: Display index.php when URL is just www.mydomain.com

Many thanks Misty & Fairestcape I've moved it to the root folder which makes more sense. I was was going by the zen cart example yourdomain.com/catalog & yourdomain.com/catalog/admin.

30 Sep 2008, 4:01 AM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Display index.php when URL is just www.mydomain.com

motty:

Many thanks Misty & Fairestcape I've moved it to the root folder which makes more sense. I was was going by the zen cart example yourdomain.com/catalog & yourdomain.com/catalog/admin.
Good idea..well done!!
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others