Jump to content

grantdb

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by grantdb

  1. YES! The second option works perfectly! Thank you so much! Cheers! PS: I can't find the “Mark Solved” button at the bottom-right of the relevant post.??
  2. From what I can find out, redirected urls with full paths through dns doesn't work without an extra redirection service. However, simple domain dns redirects work well. Thanks for the suggestion.
  3. Never thought of that, thanks! I don't knew how that works but definitely going to research this option.
  4. Yes and I tried to remove one in the rules just to see and it just stops at: https://
  5. The loop goes away but the rewrite has issues. Here is the original code result: And then with the code you suggested, no https: So you see that nothing seems to work right... if I have them as 2 seperate rules, one for https and one for www it works fine but does 2 round trips. My thinking here is that to have the rewrite done in one round trip, in the case of http://www, I cannot find anything that works better than the code I have been using. Thank you for your input on this I really appreciate your time!
  6. For some reason the [OR] causes a redirect loop when using the correct url but works otherwise. Thanks for the suggestion. Maybe this can be added to the default .htaccess as an option for those that want only ssl and no www. Cheers
  7. Just wondering if anyone knows the difference in these rules? And if the ones I am using are correct? Absolutely new ProcessWire user! Very excited to be experimenting with this wonderful CMS ( or is it CMF )! From the default .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] I am using the following from my main domain .htaccess file: RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC] RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301] The second line is to remove the www from incoming urls. Is this fine? I found that it made a www and non ssl requests rewrite in one redirect instead of two. I really don't know the difference between !=on and the off and HOST or %1%, is there a preference or standard to follow when using ProcessWire? Thank you!
  8. I am looking at another unrelated issue and was searching the forum and came across this thread and thought I could add my 2 cents. I was looking at having a sub dir not be subject to the root dir .htaccess directives and found this: RewriteRule ^subdirname/.*$ - [PT] On my server it just makes it so all requests to the specific url/dir have a passthrough without applying any of the .htaccess rules (below that line?). Maybe this is helpful in your problem or maybe not. Cheers!
×
×
  • Create New...