Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

help with autoaction

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago - 11 years 6 months ago #225944 by krileon
Replied by krileon on topic help with autoaction
I've no idea, you've a permanent move coming from somewhere. Maybe in your htaccess file? or domain level redirect in hosting panel? You need to be using live site paths as well. Example as follows.
Code:
http://www.example.com/request.php


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
11 years 6 months ago #225946 by ThePiston
Replied by ThePiston on topic help with autoaction
ok, I tried on other accounts on my VPS and can confirm that all URL requests inside CBAA are getting 301 error for some reason.

Same exact setup on another server and it works fine.

I guess next step is to get my host admin on it, thanks.

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in or Create an account to join the conversation.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
11 years 6 months ago - 11 years 6 months ago #225947 by ThePiston
Replied by ThePiston on topic help with autoaction
after 2 weeks, I've found the issue.

I was forcing www in the htaccess file with these lines:

RewriteCond %{HTTP_HOST} !^www.site.org$ [NC]
RewriteRule ^(.*)$ www.site.org/$1 [R=301,L]

I commented those out and it works. Doesn't make sense to me since i was using www in my URL, but that was it. FINALLY!

Hopefully someone else can benefit from this.

*edit** kind of a bummer I can't force WWW. Think there's a workaround so I can have both?

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Last edit: 11 years 6 months ago by ThePiston.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225951 by krileon
Replied by krileon on topic help with autoaction
Your rewrite should target non-www. You're rewriting all URLs to www version, even www versions of your URLs. So every URL on your site is going through htaccess rewrite pointlessly when already viewing as www. The below is what you should be using.
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} ^site\.org$ [NC] RewriteRule (.*) http://www.site.org/$1 [L,R=301]

The above should only rewrite non-www URLs. Existing www URLs should be left alone. So using a request URL with www should work fine and not cause it to throw a permanent moved response.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: ThePiston

Please Log in or Create an account to join the conversation.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
11 years 6 months ago #225954 by ThePiston
Replied by ThePiston on topic help with autoaction
yep, that did work. THANK YOU

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum