Post by d77 » Fri Sep 21, 2007 2:08 am

i've noticed that all of the url's within the generated HTML source are fully qualified with the domain name... relative url's don't appear to be used. since we are supplying the tag, i think we can use relative url's everywhere and reduce the size of the html coming down?

for example:

Product Name

i don't see any reason why this can't just be:

Product Name

or is there an easy way to configure this behavior that i am not seeing?

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am

Post by Daniel » Fri Sep 21, 2007 2:16 am

d77 wrote: i've noticed that all of the url's within the generated HTML source are fully qualified with the domain name... relative url's don't appear to be used. since we are supplying the tag, i think we can use relative url's everywhere and reduce the size of the html coming down?

for example:

Product Name

i don't see any reason why this can't just be:

Product Name

or is there an easy way to configure this behavior that i am not seeing?
If tyhe URL's are linke the onces you recommended how are you going to switch between SSL and normal HTTP?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by d77 » Fri Sep 21, 2007 2:25 am

interesting consideration. i am not using ssl, nor am i overly familiar with how it will behave once set up.

what i would expect is that a visitor would have to arrive at the site using https. so if i type in:

https://store.mydomain.com/

and i click on a relative url like:

Product Name

i would be directed to: https://store.mydomain.com/index.php?co ... ry&path=19

what i have seen done on other sites is that if a user attempts to access the site using http:// instead of https:// they are automatically redirected to the ssl url. i'm not sure how to approach having it behave that way, but that is the general idea.
Last edited by d77 on Fri Sep 21, 2007 2:27 am, edited 1 time in total.

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am

Post by d77 » Fri Sep 21, 2007 2:33 am

let me know if i am out to lunch, i'm not familiar with how you've implemented this in opencart.  ;D

User avatar
d77
Active Member

Posts

Joined
Sat Apr 14, 2007 8:04 am
Who is online

Users browsing this forum: No registered users and 4 guests