Results 1 to 10 of 10
  1. #1
    Join Date
    May 2010
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

    Default 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 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.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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/i...hp?article=122

  3. #3
    Join Date
    May 2010
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

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

    Quote Originally Posted by gjh42 View Post
    Why not just move the new site to /public_html/ and eliminate the .htaccess redirects?

    https://www.zen-cart.com/tutorials/i...hp?article=122
    Thanks for your speedy reply!
    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?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  5. #5
    Join Date
    May 2010
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

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

    Thanks Black Belt have followed the instructions here https://www.zen-cart.com/tutorials/i...hp?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?

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,108
    Plugin Contributions
    11

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

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

  7. #7
    Join Date
    May 2010
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    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.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

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

  9. #9
    Join Date
    May 2010
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

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

    Quote Originally Posted by gjh42 View Post
    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

    Im so happy now 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?

  10. #10
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

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

    Quote Originally Posted by Pookiehair View Post
    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

    Im so happy now 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.

 

 

Similar Threads

  1. Demo shop data in addition to 'test shop'
    By birket in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 31 Oct 2011, 11:58 AM
  2. how do i get rid of the demo data in my shop?
    By Soul39 in forum Installing on a Windows Server
    Replies: 7
    Last Post: 4 Aug 2008, 10:27 PM
  3. Making a demo site?
    By andy-c1 in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2008, 04:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR