Zen Cart Logo
Forums / General Questions / Problems pointing old URL to new site

Problems pointing old URL to new site

Views: 1,425

Results 1 to 13 of 13
29 Jun 2013, 5:19 PM
#1
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Problems pointing old URL to new site

SO........I made https://www.toomuchfunclub.net my primary domain for my website...

but the links still point to www.2muchfunclub/store
(I don't want the links to point to 2muchfunclub.net/store ...only toomuchfunclub.net)
(I moved all the files from public_html/store/ ......... to public_html/)

I changed the admin/configure.php

what else do I change?

the other public_html/store/configure.php didn't seem to have any references to 2muchfunclub.net

thanks!

29 Jun 2013, 8:11 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Problems pointing old URL to new site

It would be includes/configure.php.

30 Jun 2013, 12:02 AM
#3
iray avatar

iray

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Problems pointing old URL to new site

You need to change your includes/configure.php file to reflect new location.

define('HTTP_SERVER', 'http://www.toomuchfunclub.net');
define('HTTPS_SERVER', 'https://www.toomuchfunclub.net');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

Also, do not forget to change DIR_FS_CATALOG and DIR_FS_SQL_CACHE constants.

Then, to redirect all your current links, put the following code to your public_html/.htaccess file:

<IfModule rewrite_module>

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.2muchfunclub.net$ [OR,NC]
RewriteCond %{HTTP_HOST} ^2muchfunclub.net$ [NC]
RewriteRule ^store/(.*)$ http://www.toomuchfunclub.net/$1 [L,QSA,R=301,NE]

</IfModule>
2 Jul 2013, 2:13 AM
#4
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Re: Problems pointing old URL to new site

Thanks very much...!
except the images are not linking up correctly...

https://www.toomuchfunclub.net

2 Jul 2013, 2:30 AM
#5
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Re: Problems pointing old URL to new site

lrfowler:

Thanks very much...!
except the images are not linking up correctly...

https://www.toomuchfunclub.net

I can't get into my 'admin' section...
larry_admin

2 Jul 2013, 6:34 AM
#6
iray avatar

iray

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Problems pointing old URL to new site

Also re-configure admin/includes/configure.php file.

2 Jul 2013, 8:56 AM
#7
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Problems pointing old URL to new site

lrfowler:

I can't get into my 'admin' section...
larry_admin

I suggest you immediately change your admin folder name or if not then request that forum mods remove or edit your post...you have just given a hacker your back door!

8 Jul 2013, 3:36 AM
#8
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Re: Problems pointing old URL to new site

picandnix:

I suggest you immediately change your admin folder name or if not then request that forum mods remove or edit your post...you have just given a hacker your back door!
What do I have to do to rename my admin folder?
I tried just renaming the folder...that didn't work too good...

8 Jul 2013, 5:21 AM
#9
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Problems pointing old URL to new site

lrfowler:

What do I have to do to rename my admin folder?
I tried just renaming the folder...that didn't work too good...

http://www.zen-cart.com/content.php?75-how-do-i-rename-my-admin-folder-to-prevent-unauthorized-access
you will have to edit your configure.php to match though as this guide is for the first time you renamed during original installation.

9 Jul 2013, 6:12 AM
#10
lrfowler avatar

lrfowler

Zen Follower

Join Date:
May 2008
Location:
san francsico
Posts:
135
Plugin Contributions:
0

Re: Problems pointing old URL to new site

i edited admin/configure .....it doesn't open my admin page...
is there another file to edit?

9 Jul 2013, 8:35 AM
#11
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Problems pointing old URL to new site

lrfowler:

i edited admin/configure .....it doesn't open my admin page...
is there another file to edit?

Admin/includes/configure.php
which parts are you editing? Post it here but WITHOUT your password/database.

9 Jul 2013, 9:01 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problems pointing old URL to new site

And remember: since the configure.php files are typically set to read-only, you will probably need to first change the file's permissions to writable before you'll be able to save your changes to it, else your changes will not take effect and you'll get unexpected (old) results.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jul 2013, 12:31 PM
#13
iray avatar

iray

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Problems pointing old URL to new site

Revert all changes you made to those files and edit it again - there are probably some typos causing PHP parse error.