Jump to content

dweeda

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by dweeda

  1. Well, I have not solved this yet. Unfortunately.

    I clicked a host link provided by cstevensjr and modified my .htaccess file appropriately.  No fix.

    I also cleared my PW cache folder as per dragan.  But, no fix.

    At this point I have tested and made changes for both my host and PW with no effect.  Each is pointing the other way now - so, not unusual :)   Is there a tool my host could use to track what's going on in order to determine the missing and/or problematic link/setting?

    Thx to all.

  2. My hosting firm says their Apache server is configured correctly. They believe this is a CMS/Framework issue.

    I have tried many different .htaccess settings with no effect. 

    One theory is that the PW /cache/ folder is the problem and needs to be emptied. But I'm concerned about making things worse with a broad stroke like that. Something more surgical would be better. Yes? No?

    Note, all pages were accessible and the site was up and running before I switched to HTTPS. After, only the top domain URL loads. This includes the admin page.

     

  3. I haved heard this: 

    "I know this may sound strange, but when it comes to https and redirects browsers become very "cachehappy"!

    When running into problems with this I use the browsers incognito/private mode, have to empty cache, restart browser, use different browser, use a VPN, and so on.

    Tiresome sometimes..."

    Hmm.  Does this mean only I continue to see this problem?  External site visitors would be OK?

    What can I do to solve this?  Even if only for me...  THX

  4. I installed an SSL Certificate, then edited my .htaccess file:

      # -----------------------------------------------------------------------------------------------
      # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.
      # -----------------------------------------------------------------------------------------------
      RewriteCond %{HTTPS} off
      RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    by uncommenting out the Rewrite lines.

    The main site loads as https, but now I get 404 error pages when I try go to any subpage: .../processwire-master/<pagename>/

    This includes my admin page at .../processwire-master/processwire/, so i can't get into my admin.

    After this, in .htaccess I  uncommented out   RewriteBase /   and   RewriteBase /processwire-master/

    still not working...

  5. I installed an SSL Certificate, then edited my .htaccess file:

      # -----------------------------------------------------------------------------------------------
      # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.
      # -----------------------------------------------------------------------------------------------
      RewriteCond %{HTTPS} off
      RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    by uncommenting out the Rewrite lines.

    Now I get 404 error pages when I try go to any .../processwire-master/<pagename>/

    This includes my admin page at .../processwire-master/processwire/, so i can't get into my admin.

    What else do I need to do?

  6. 7 hours ago, bernhard said:

    hi dweeda and welcome to the forum,

    not sure what you are trying to do exactly. maybe you can be more clear about what you are trying to achieve? if you need the script to run as a special user you can use https://processwire.com/api/ref/session/force-login/

    but your question sounds a bit strange. maybe (as often in pw) there is a much more elegant solution and you don't need all this bootstrapping ;)

    To be more specific: before I started using PW I wrote a web app that's fairly robust (50+ php files) and is not needing content management.  I since wrote a website using PW that redirects to the app.  The app has its own login/reg handling, and was using PHP's $_SESSION to handle user timeouts, but that had a resilient $_SESSION bug where I needed to login twice the first time in to get the global var to be available.

    A friend who uses PW suggested I use $user and $session to handle user logins and timeouts, so I brought the login file into PW. But I don't want to bring in all my 50+ app files as they have no need of content management.  I thought the PW index include would work, and I do see the $user and $session vars in my app, but they appear to be reinitiated and don't have my values I set in the login file inside PW.

  7. Thanks for all your replies.

    To be more specific: before I started using PW I wrote a web app that's fairly robust (50+ php files) and is not needing content management.  I since wrote a website using PW that redirects to the app.  The app has its own login/reg handling, and was using PHP's $_SESSION to handle user timeouts, but that had a resilient $_SESSION bug where I needed to login twice the first time in to get the global var to be available.

    A friend who uses PW suggested I use $user and $session to handle user logins and timeouts, so I brought the login file into PW. But I don't want to bring in all my 50+ app files as they have no need of content management.  I thought the PW index include would work, and I do see the $user and $session vars in my app, but they appear to be reinitiated and don't have my values I set in the login file inside PW.

  8. In a PW file, I successfully login a $user using $session->login().

    I later redirect to a different PHP file. It's not a PW template file so I do the appropriate  include("/path/to/processwire/index.php");

    But then I try to get the logged in $user->name and it always gives me 'guest'.  And if I set a $session value at login, in the redirected file my values are lost.

    I am new to PW so I am surprised.  What am I missing?

    Thx

×
×
  • Create New...