Zen Cart Logo
Forums / General Questions / Making my 'demo' my new 'shop'

Making my 'demo' my new 'shop'

Views: 641

Results 1 to 10 of 10
1 Nov 2011, 5:08 PM
#1
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Making my 'demo' my new 'shop'

I have my old site http://www.towerhousedolls.co.uk/ in public_html/shop and have it directed to https://www.towerhousedolls.co.uk using the .htaccess file written as follows:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?towerhousedolls.co.uk$
RewriteCond %{REQUEST_URI} !^/shop/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /shop/$1
RewriteCond %{HTTP_HOST} ^(www.)?towerhousedolls.co.uk$
RewriteRule ^(/)?$ shop/index.php [L]

I have now made a new site with a new database (version 1.3.9h)http://www.towerhousedolls.co.uk/demo in public_html/demo

I am now ready for the 'demo' site to go live and to disable the old 'shop' one. I have tried changing the .htaccess file to redirect people to the demo site but without success. It wont let me change it.

I now wish I hadnt called the new site 'demo'. Is there a way I can rename it 'shop' and call the old 'shop' something else untill I delelete it?

Can anyone help please or suggest how to do this? Im not keen on anyone seeing the word demo in the web browser bar at all.

1 Nov 2011, 5:19 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Making my 'demo' my new 'shop'

Why not just move the new site to /public_html/ and eliminate the .htaccess redirects?

https://www.zen-cart.com/tutorials/index.php?article=122

1 Nov 2011, 5:37 PM
#3
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Re: Making my 'demo' my new 'shop'

gjh42:

Why not just move the new site to /public_html/ and eliminate the .htaccess redirects?

https://www.zen-cart.com/tutorials/index.php?article=122

Thanks for your speedy reply! :smile:
To do that would I open my 'demo' folder and move everything in it to the public_html folder? Leaving no 'demo' folder at all?
Then change the /includes/configure.php and /admin/includes/configure.php files?
Would anything else need changing? :lookaroun

1 Nov 2011, 5:50 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Making my 'demo' my new 'shop'

That's the nutshell version, yes. Read the tutorial for all the details.

I might copy instead of move, leaving the /demo/ folder as is until you are sure the move was successful. Then you can delete it if you wish, or keep it as a testbed with perhaps security rules to keep other people and search engines from seeing it.

1 Nov 2011, 8:52 PM
#5
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Re: Making my 'demo' my new 'shop'

Thanks Black Belt have followed the instructions here https://www.zen-cart.com/tutorials/index.php?article=122 but http://www.towerhousedolls.co.uk/ still points to old site.
I think its the old .htaccess file causing the problem. It wont let me alter it or remove the wording. Can I just delete it? If I need to put it back will I be able to?

2 Nov 2011, 3:08 AM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Making my 'demo' my new 'shop'

Use the .htaccess that came with the version you're using.

2 Nov 2011, 9:14 AM
#7
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Re: Making my 'demo' my new 'shop'

dbltoe:

Use the .htaccess that came with the version you're using.

There isnt one.

I just need to take out this...

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?towerhousedolls.co.uk$
RewriteCond %{REQUEST_URI} !^/shop/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /shop/$1
RewriteCond %{HTTP_HOST} ^(www.)?towerhousedolls.co.uk$
RewriteRule ^(/)?$ shop/index.php [L]

...as I dont want my site directed to 'shop' anymore. Thats all there is in the .htaccess file and it will leave it blank.

Although I wrote that in last year and added the .htaccess file I cant now alter it. Can I just delete it? Although it probably wont let me do that either. I have tried doing this via my FTP and also from my host cpanel.

I wanted to get my new site up yesterday on Nov 1st so am desperate to get it live today. Any help would be appretiated. :unsure:

2 Nov 2011, 1:53 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Making my 'demo' my new 'shop'

Can you change permissions on the file in cPanel?
If not, ask your host.

2 Nov 2011, 5:21 PM
#9
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Re: Making my 'demo' my new 'shop'

gjh42:

Can you change permissions on the file in cPanel?
If not, ask your host.

Thanks Black Belt. Thats what I have just done. My host changed it for me.

I now have my new site live in public_html :clap:

Im so happy now :cool: and about to backup everything.

One other weeny question (hope you dont mind me asking in here)
On my Order Confirmation emails that are sent to the customers there's a sage green panel in the Products area.
I would love to change that to a pale blue. Have been hunting but not found the right place to do this yet. Can you help please?

2 Nov 2011, 5:46 PM
#10
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Making my 'demo' my new 'shop'

Pookiehair:

Thanks Black Belt. Thats what I have just done. My host changed it for me.

I now have my new site live in public_html :clap:

Im so happy now :cool: and about to backup everything.

One other weeny question (hope you dont mind me asking in here)
On my Order Confirmation emails that are sent to the customers there's a sage green panel in the Products area.
I would love to change that to a pale blue. Have been hunting but not found the right place to do this yet. Can you help please?

The eMail layout files are in your /email folder. You would change the color in the style section at the top.