Help with HTTPS

N

n|ck

Hey everyone,

If I'm in an https directory, can I still use relative paths to files I'm
calling (CSS, JavaScript) as if the https and http pages are in the same
directory? Or do I have to refer to them absolutely? Unfortunately I can't test
this to see for myself because my client has the certificate and I've never
worked with one before.

Thanks in advance,

Nick.
 
J

JDS

Hey everyone,

If I'm in an https directory, can I still use relative paths to files I'm
calling (CSS, JavaScript) as if the https and http pages are in the same
directory? Or do I have to refer to them absolutely? Unfortunately I can't test
this to see for myself because my client has the certificate and I've never
worked with one before.

Thanks in advance,

Nick.

it depends.

https has nothing to do with whether the paths are different, necessarily.
Many time, the https version of a website is identical to the http version
-- really identical -- same files, same directories, same everything. the
only change is that now the web server is encrypting the http traffic.

so the answer to your question is porobably yes, everything stays the same.

Incidentally, you can't really have only one directory as the "https
directory" -- either everything is or nothing is.

Try this -- go to a popular website, and just add "s" after the http in
uyour browser's address bar. You'll find that quite often, the site
is also available encrypted. I hopew that clarifies it a smidge.
 
N

n|ck

JDS said:
Try this -- go to a popular website, and just add "s" after the http in
uyour browser's address bar. You'll find that quite often, the site
is also available encrypted. I hopew that clarifies it a smidge.

Yeah I think I get it now. I guess I get confused when I see a directory names
"httpdocs" and "httpsdocs". I was hoping to just have the non-secure pages
coming through HTTP and *only* the secure pages coming through HTTPS. Is that
not possible?
 
J

JDS

Yeah I think I get it now. I guess I get confused when I see a directory names
"httpdocs" and "httpsdocs". I was hoping to just have the non-secure pages
coming through HTTP and *only* the secure pages coming through HTTPS. Is that
not possible?

Sure its possible but I have no idea how the server is configured. This
is all web server configuration related. Talk to your server admin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top