insideorkut.com

Now that iPage is no more, will Myspace and Facebook be closing down soon?

Click Here To View All Answers...


First question I have is Now that iPage is no more, will Myspace and Facebook be closing down soon? Hoping for any comment. Second question of mine... Ok, so I have a test iPage site in a folder under the real site. But my test iPage site uses the real site's root folder, so for every image I have to add /testsite/image.gif just so I can see it on the test site. How can I change this so it's just /image.gif so when I replace the real site, I dont have to rename directories back to /image.gif from /testsite/image.gif...

Comments (19)

I'm stumped. I'm not so sure what is the right answer to your question. I'll do some research and get back to you if I got an good answer. You should email the people at iPage as they probably could help you..

Comment #1

IF THIS WORKS U ARE A GOD. i've been annoyed by this for weeks...

Comment #2

Uhoh, still have x's, it didnt change the path...

Comment #3

Try taking off that last slash:.

Is your iPage site structured like this:.

Or this:.

And where is the file looking for images located?..

Comment #4

Www.mysite.com/testsite/images/.

Like that..

So I have main.shtml and inside it.

<img src="/images/image.gif">.

Dreamweaver displays this correctly in the window, but when it's uploaded, it goes under.

Www.mysite.com/images/image.gif.

To find it...

Comment #5

I could have sworn taking off that last slash from the base href would work....

Do you have more than 1 <base tag? maybe?..

Comment #6

Nope, maybe it's the server...cuz they're all .shtml and it can only be viewed correctly when it's uploaded cuz if I try to preview it, none of the pics show up...

Comment #7

I dont think it's the shtml....

Are you putting "/images/image.gif" or "images/image.gif"?..

Comment #8

Yup, it sure does....

<img src="/images/image.gif"> wouldn't work because the first / confuses the browser....

<img src="images/image.gif"> tells the browser that the "images/" is a directory and to start there to look for the file "images.gif".

<img src="../images/image.gif"> tells the browser to go up one directory ( mysite.com/ in this case assuming the <img> tag is in a html/shtml/etc file located in the folder mysite.com/testsite ) and to look for the folder ( images/ ) to find the file ( images.gif ).

You mentioned just now that you can't preview it but it works if you upload it? err, did I read that wrong?..

Comment #9

Yea, it only works if I look at it on the net, not just using explorer to preview it. my friend tells me it's because of the shtml...

Comment #10

Ohhhh... 'previewing' it offline....

Try previewing it again, when it comes up in ie, what's in the address bar? if it's something like file:///c:/ blah blah instead of.

Http://www.mysite.com.

Then the reason why you would be unable to preview it is because the images/ folder is not located on your hard drive as a sub-folder of the folder where your .shtml file is stored....

Just copy the images/ folder to your hard drive where your .shtml file is:.

Images go here:.

C: older older older older estsite\images\.

.shtml files accessing those images go here:.

C: older older older older estsite\.

Or set the base tag to:.

<base href="file:///c:/folder/folder/folder/folder/testsite/">.

If your thinking it might be the 's' then try taking it off and see what happens.....

Comment #11

No it IS in the subfolder. when I remove the S in shtml, I see the same thing as I would when I view it on the internet. It still tries to search the pics from.

Www.mysite.com/images.

Instead of.

Www.mysite.com/testsite_html/images.

So now that I can view it offline by changing the s, then it cant be a setting on the server..

I think it's something in dreamweaver that I set wrong.....

Comment #12

Ok so basically, I want to change from an absolute root to a relative root...

Comment #13

O_O whoa! that is odd....

So if you remove the s and make the file main.html then right away you can preview it when you're offline, however, if you add the s and make it shtml then you see the red x's....

It might be something inside of dreamweaver, but it might also be a setting in your browser's properties or preferences....

Hold on a minute, I'm going to try something, brb.....

Comment #14

I just saved a copy of the forum's 'html page layout' page source to my desktop and added the <base href="http://www.htmlforums.com/"> to it just after the body tag....

I tried opening it with .html and with .shtml... either way if I take out the <base tag then I get the red x's and if I leave the <base tag in there then the images are still downloaded....

What I get from that is that if you haven't changed the security settings on your browser then it's probably something with dreamweaver....

Try something for me real quick... try closing all the way out of dreamweaver and then use windows explorer to find the main.shtml ( remove the s ) and try opening it ( dont copy it somewhere else, open it from where it is ) in your browser... if the pics don't show then add the <base tag and 'keep' the s off....

One of those ways should show the pics... when you see them 'then' add the s at that point and open it back up in your browser again to see if the pics will show....

Bottom line; if the pics show up but then as soon as you add the s at this point, they stop showing upthen it's your browser....

However; if the pics show up even after adding the sthen it's dreamweaver and in that case, I would suggest just creating a shortcut to your desktop of that file or make a bookmark/favorite in your browser and use your browser directly ( not 'thru' dreamweaver ) to preview your page prior to uploading it....

One more thing, what browser are you using to preview the testsite and what version is it?.

Let me know how it goes.....

Comment #15

Hmm, there is a world of difference in browsing the folders on your hard drive, and.

Serving.

The pages to the browser from a webserver program..

I would install a webserver program on your machine so that you can browse your iPage site offline through.

Http://localhost/.

Instead..

You could install.

PWS.

Or.

IIS.

That come on the Windows CDROM, but a much better solution is to get the.

Apache.

Webserver. If you get a package like.

PHPdev.

Then you also get.

PHP.

,.

MySQL.

,.

PHPmyadmin.

, an example.

Phpwebsite.

, the.

Cerebus.

FTP server, some sample PHP code, and an example.

Invision.

Forum too...

Comment #16

Ok, viewing it with IE 6.0, without the S, it's teh same as what I see thru the internet on the server ( this is with the BASE href on). When I remove it, the images load, since it loading from my harddrive and not trying to load from the internet...

Comment #17

You know, xforce81, we've tried to do just about everything to get it to work right with the s and with the base tag on....

What giz said makes complete sence to me since inorder for a 'secured' webpage to be interpreted correctly, it needs to be accessed through a secured connection that only a webserver can provide....

Try installing personal webserver or IIS as giz suggested and see if that fixes the problem....

Sorry I didn't think of that before, I rarely work with secured pages ( although in a month or so i'll have to get started lol )..

Comment #18

Ok thanks a big bunch for the help and merry chrismukka to all!..

Comment #19

Look for the.

PHPdev.

Package to give you all that you need. It comes in an easy to install, easy to get working file. Do read the instructions first though, especially the.

Where to install to.

Bit!..

Comment #20


This question was taken from a support group/message board and re-posted here so others can learn from it.