Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Web Hosting Services

Notices

Reply
 
Thread Tools
  #1  
Old 01-19-2009, 12:23 PM
JustForMilitary JustForMilitary is offline
Hatchling Croc
 
Join Date: Dec 2006
Posts: 1
Default URGENT Help needed...addon site file transferring issue

i added on a new domain to my account... www.operationclassifieds.com. My main domain is www.justformilitary.com. I moved all of the files to OC after I added it on. The site comes up OK but a lot of the pics and some other stuff will not come up. the file names did not swith over to OC so the pics and some other items are looking for old name.
I am pretty new at this so I am not sure if anyone can understand but, if you go to the O.C. site and right click for properties on one of the items with an X, you will see the address still says a justformilitary folder file...I have moved everything to operationclassifeds folder in the root.

Help????
Reply With Quote
  #2  
Old 01-19-2009, 12:43 PM
fanfavorite fanfavorite is offline
Junior Croc
 
Join Date: Jun 2006
Location: Toronto, Ontario, Canada
Posts: 194
Default Re: URGENT Help needed...addon site file transferring issue

This all depends on how the justformilitary.com site was originally coded. If the link paths (in the code) are absolute (meaning has http://www.justformilitary.com/linkorimagename), than you will have to manually change each one. So do a search/replace on justformilitary.com to replace with operationclassifieds.com. If they are relative paths (which in this case arn't), than changing a domain would not be an issue. For example, instead of http://www.justformilitary.com/somefile.php, you would have somefile.php or ../somefile.php if you were in a folder above, etc.

Now either you do the replacement thing I mentioned or possibly the program you are using to develop the site, sets the website url, in which you would just change the url and save and upload the changes.
Reply With Quote
  #3  
Old 01-19-2009, 12:54 PM
dewt's Avatar
dewt dewt is offline
Swamp Croc
 
Join Date: Jul 2008
Location: Berkshire, UK
Posts: 247
Default Re: URGENT Help needed...addon site file transferring issue

Did you just copy the files from your main domain to your new one? The path and names of the various files are coded into the pages. You have used absolute references in the pages

Code:
url(http://www.justformilitary.com/classifieds/theme/Default/mainbg.gif
so it will always try to load from that location.

You should be able to edit the pages fairly easily using the application you created the pages with so that the images etc are all pointing to the new domain. Or you could use something like PSPad to do a search and replace in the files.
__________________
Dave Turnbull
Official Grumpy Old Git
Quote:
"People who ask our advice almost never take it. Yet we should never refuse to give it, upon request, for it often helps us to see our own way more clearly."

-- Brendan Francis
Reply With Quote
  #4  
Old 01-19-2009, 01:46 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: URGENT Help needed...addon site file transferring issue

Quote:
Originally Posted by dewt View Post
Or you could use something like PSPad to do a search and replace in the files.
Like most multi-purpose tools of any sort, PSPad isn't the best at any one of the purposes, but it is so "multi" that I can't imagine being without it. Literally hundreds of useful features, including, in this case, a multi-file/directory search and replace that does the server, as well (be sure to set up the FTP details, which are reached by a microscopic icon in the left pane).

PSPad - free developer editor
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Theme Help Needed AngelFire Shared Hosting Support 7 10-10-2008 10:32 PM
changing primary domain. what will happen with addon domains? Urgent! ronaldv Shared Hosting Support 5 03-26-2008 09:10 AM
Urgent Billing Issue - Account Suspended Sentinel Pre-Sales Questions 15 07-06-2007 01:02 PM
Issue using custom php.ini config file, can hostgator help to solve the issue ? jpck Shared Hosting Support 3 06-04-2007 01:29 PM

All times are GMT -5. The time now is 06:51 AM.