Menu

#647 Don't generate explicit URLs

phpGedView
open
nobody
5
2006-07-31
2006-07-31
rolande
No

It appears that alot of the PHP code generates explicit
URLs for objects on the site. Can you change it to just
generate the relative URL? Additionally, can you allow
for a configurable redirect upon login? This would
allow for seamless URL rewriting or port
redirection/SSL termination.

I am attempting to redirect my site through an
alternate high port to use an SSL offload device but
the login.php script redirects with an explicit URL
that points back to the cleartext version of the site
on port 80. I have also noticed that the Random Media
block uses explicit URLs for the img src tags.

Best practice is to always use relative URLs within any
site content. The login script should have a
configurable Form POST action to allow for a more
secure login and a configurable/variable redirect if
the site owner wants to redirect to an alternate URL or
port for SSL etc.

Thank you for this great application! The rest of my
extended family is thanking you too. ;)

Discussion

  • KosherJava

    KosherJava - 2006-07-31

    Logged In: YES
    user_id=634811

    I believe that the reason that the media links are not
    relative is because you can set PGV up to use an external
    server to host your images. RSS feed also require non
    relative URLs to validate. Are there any other cases where
    you noticed non-relative URLs?

     
  • rolande

    rolande - 2006-07-31

    Logged In: YES
    user_id=1565351

    Thanks for the response. The only two issues that I noted
    myself were the redirect after logging in and the img src
    tags in the Random Media box on the Welcome Page. There may
    be additional ones but I didn't go that far. Maybe there
    should be a configuration option globally and/or for each
    module to allow for relative or absolute URLs in the page
    generation scripts with the default using relative URLs.
    Then a site owner can choose to use explicit URLs if
    necessary for content offloading but otherwise can just
    leave the defaults which should be relative.

    Thanks!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.