Results 1 to 5 of 5

Thread: Changing href links to https

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    13

    Default Changing href links to https

    With recent changes requiring to show a secure site with https in the URL bar (so certain browsers don't show the site as not safe), my site became pretty non-functional. I had a family member fix this on the home page by editing the html code, so it is (partly) functioning right now, but other pages and links are not. And when I need to update the home page and other pages, NOF would simple replace the edited code with its own code. Basically, the hosting site wants all links to point to https, but NOF 15 does not do this, at least not at this time (e.g., in my menu and in file links). Is there a way to re-work all html links and file links to point to a secure location without having to re-edit every single one of them?
    My site is solutionresources.net. You will find the home page links working now, but links on other pages are not functioning correctly. And the main article on the home page is not displaying (which is why I have to re-upload the page)

  2. #2
    Senior Member chuckj's Avatar
    Join Date
    Jan 2010
    Location
    www.beyondfusion.com - Florida
    Posts
    1,302

    Default

    Make all of your links external links in link properties and choose for them to be preceded by https:// using the dropdown menu.
    Chuck Joslin
    www.BeyondFusion.com
    PHP & MySQL development with Fusion
    Fusion support for AllWebMenus (Likno) Contact me for custom AWM menus for your sites.
    Tutorials and Forums

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    13

    Default

    Thanks. I see how that can work. Do I have to change every link on ever page manually, or is there some kind of batch operation (like a find and replace) one can use. Also, how would I change the pointer within the navigation bar- after all, it's generated by NOF?

  4. #4
    Senior Member
    Join Date
    Apr 2010
    Location
    Sydney
    Posts
    2,000

    Default

    I never change any internal links to external links, this makes testing the site locally a nightmare

    instead, fix the htaccess file on your server and it is taking care of all internal links becoming https

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  5. #5
    Senior Member chuckj's Avatar
    Join Date
    Jan 2010
    Location
    www.beyondfusion.com - Florida
    Posts
    1,302

    Default

    As long as your web server is Apache, I agree.

    Also, (if not using .htaccess) the only links that would need to be changed to https in link properties are absolute links, not relative links.
    Last edited by chuckj; 10-08-2018 at 01:26 PM.
    Chuck Joslin
    www.BeyondFusion.com
    PHP & MySQL development with Fusion
    Fusion support for AllWebMenus (Likno) Contact me for custom AWM menus for your sites.
    Tutorials and Forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •