/index.php?option=com_jfbconnect&task=ajax.fetch&library=toolbar.button.post&subtask=getHtml&xyz=1
{"target":"#social-post-container","title":"Post to social networks","html":"....
GET https://911tap.org/plugins/system/jcemediabox/themes/standard/tooltip.html 304 Not Modified - 374ms - jcemedi...3c5280e (line 1)
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!
GET https://www.911tap.org/index.php?option=com_jfbco...btask=getHtml&c3a83d15a96c9c169a33b5397af6a9a7=1 - 301 Moved Permanently - 357ms - 2e8a542...413d.js (line 1)
Headers
Response Headers
CF-RAY - 3378027a686953d2-LAX
Cache-Control - max-age=0
Content-Type - text/html; charset=iso-8859-1
Date - Mon, 27 Feb 2017 01:54:35 GMT
Expires - Mon, 27 Feb 2017 01:54:35 GMT
Location - https://911tap.org/index.php?option=com_jfbconnect&task=ajax.fetch&library=toolbar.button.post&subtask
=getHtml&c3a83d15a96c9c169a33b5397af6a9a7=1
Server - cloudflare-nginx
Set-Cookie - __cfduid=d6cd4db0001da6519741755ce562b872b1488160475; expires=Tue, 27-Feb-18 01:54:35 GMT; path=/; domain=.911tap.org; HttpOnly
Vary - Accept-Encoding
X-Firefox-Spdy - h2
Request Headers
Accept - */*
Accept-Encoding - gzip, deflate, br
Accept-Language - en-US,en;q=0.5
Host - www.911tap.org
Origin - https://911tap.org
Referer - https://911tap.org/
User-Agent - Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0
! Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.911tap.org/index.php?option=com_jfbconnect&task=ajax.fetch&library=toolbar.button.post&subtask=getHtml&c3a83d15a96c9c169a33b5397af6a9a7=1. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Results from entering URL in Browser.
{"target":"#social-post-container","title":"Post to social networks","html":"
\n
\n
Please enter a comment and select the social networks to post to.<\/p>\n <\/textarea>\n <br\/><input type=\"checkbox\" id=\"channels_selectall\" onclick=\"\n jfbcJQuery('#social-post-popup :checkbox').each(function() {\n if(this.id != 'channels_selectall')\n this.checked = jfbcJQuery('#channels_selectall').is(':checked');\n });\n \"\/><label for=\"channels_selectall\">Select All<\/label><br\/>\n <input type=\"checkbox\" name=\"cids[]\" class=\"twitter-stream\" value=\"5\" id=\"cid_5\" \/>\n <label class=\"channel-name\" for=\"cid_5\">\n <img src=\"https:\/\/www.911tap.org\/media\/sourcecoast\/images\/provider\/twitter\/icon.png\" \/>9\/11 Truth Action Project Twitter Channe<\/label> <span class=\"social-post-counter\" data-max=\"140\" data-url-length=\"23\"><\/span><br\/><input type=\"checkbox\" name=\"cids[]\" class=\"facebook-page\" value=\"6\" id=\"cid_6\" \/>\n <label class=\"channel-name\" for=\"cid_6\">\n <img src=\"https:\/\/www.911tap.org\/media\/sourcecoast\/images\/provider\/facebook\/icon.png\" \/>9\/11 Truth Action Project Facebook Chann<\/label><input type=\"hidden\" name=\"c3a83d15a96c9c169a33b5397af6a9a7\" value=\"1\" \/><\/form>\n <\/div>","buttons":[{"name":"Post","id":"submit-social-post","action":"jfbc.toolbar.post.submit"}]}
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]/
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
(https\:\/\/)?(www\.)?911tap.org/petition-now/?$
(https\:\/\/)?(www\.)?911tap.org/petition-now/?$
Redirect 301 /old-path /new-path
The first bit of code you have for fixing www and http(s) already does that. It redirects the user to the proper fully-qualified domain. Then, the rule for the path would be done again after the redirection occurs. The way you're doing it above wouldn't ever do anything extra because by the time the path check is executed, the domain has to be correct first.Yeh I suppose you are right. I wanted to make sure that if it was https:// or http:// with or with out the www. that it would still go to ...
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.