Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 10:32:45 PM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12789 Posts in 1519 Topics by 6457 Members
Latest Member: DuCialisFr
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Website development
| | |-+  little help please
« previous next »
Pages: [1] Print
Author Topic: little help please  (Read 393 times)
KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« on: January 01, 2012, 02:15:29 AM »

right i think i need help on this one......

i was thinking about something like a test website kinda thing...... like a branch off my website can this be done?

say i want to mess around with a template on a live server say like www.knmcomputers.co.uk/newshop ...... this newshop would be a new fresh copy of zencart so i could mess around with a template and keep my site as is.

so far i made a new folder called newshop in the public_html folder then copyed a new copy of zencart into it and tried to install it but it keeps coming up with page not found??? someone please help thankyou
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #1 on: January 01, 2012, 04:50:39 PM »

Your site has the ceon URI mod, you'll need to open up your htaccess file and add a rule to it,
There will already be rules in there to prevent the admin directory from having its url affected by the mod, just copy the lines that refer to your admin directory and change it to echo your new install directory, that will stop the 404 page not found error.

The file you need to edit is called .htaccess and its inside public_html
Just copy the two lines that refer to your admin, paste them on the bottom of the list and change them to echo your new install directory

great
Logged

KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« Reply #2 on: January 01, 2012, 07:32:02 PM »

think im bit dimb on this seamus lol where do u put it at the bottom?  in that file i have this:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName knmcomputers.co.uk
AuthUserFile /home/knmcompu/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/knmcompu/public_html/_vti_pvt/service.grp

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$                                                           
# Don't rewrite admin directory                                <<<<<<<<<<<<<<<<<<<<<<<<<<is it this bit?
RewriteCond %{REQUEST_URI} !^/knm-admin.* [NC]     <<<<<<<<<<<<<<<<<<<<<<<<and this bit?
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
# Don't rewrite feed on feeds directories
RewriteCond %{REQUEST_URI} !/feedonfeeds.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #3 on: January 01, 2012, 11:47:01 PM »

That's the bits, just add in the new lines directly under the admin lines, just change the knm-admin bit on the new lines to newshop and that should be alright ;)
Logged

KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« Reply #4 on: January 01, 2012, 11:48:47 PM »

thankyou seamus then i can put a copy of zencart in the newshop folder and install it?
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #5 on: January 02, 2012, 12:29:16 AM »

Yip, that should be alright ;)
Logged

KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« Reply #6 on: January 02, 2012, 12:30:45 AM »

lol if ive done it right lol it now says:


# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/knm-admin.* [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/newshop.* [NC]
# Don't rewrite editors directory
Logged
KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« Reply #7 on: January 02, 2012, 01:27:54 AM »

ok i did that this is what i did:


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName knmcomputers.co.uk
AuthUserFile /home/knmcompu/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/knmcompu/public_html/_vti_pvt/service.grp

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/knm-admin.* [NC]
# Don't rewrite newshop directory                                 <<<<<<<<<<<<<<<<<<<<<<<<<
RewriteCond %{REQUEST_URI} !^/newshop.* [NC]         <<<<<<<<<<<<<<put these in <<<
# Don't rewrite googlecheckout directory
RewriteCond %{REQUEST_URI} !^/googlecheckout.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
# Don't rewrite feed on feeds directories
RewriteCond %{REQUEST_URI} !/feedonfeeds.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]

installed zencart with the installer in cpanel, it said it installed    http://knmcomputers.co.uk/public_html/newstore  and the administration is http://knmcomputers.co.uk/public_html/newstore/zcadmin

only if i click on the links they come up

 Page Not Found
Custom 404 Error Page with Site Map Sample Text ...

at a guess ive not done something really stupid lol
Logged
KNM Computers
Liking it Here
***

Karma: 1
Offline Offline

Posts: 148


WWW
« Reply #8 on: January 02, 2012, 08:39:42 PM »

lol dont worrie ive done it, it was something stupid i did........ typo error
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #9 on: January 03, 2012, 12:35:44 AM »

great
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009