Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 03 2016 21:29
    markdown is fun
Guy Mograbi
@GuyMograbi
Welcome to mograblog gitter talk
Peter
@PeteMachineLNU_twitter
Hey GuyMograbi
Guy Mograbi
@GuyMograbi
hi
Guy Mograbi
@GuyMograbi
@PeteMachineLNU_twitter hi
Frank Lin (林宏)
@flinhong
Hi, Mograbi
I'm the guy have the problem with firebase current reading
Guy Mograbi
@GuyMograbi
can you please descrobe the problem again with steps to reproduce please?
Frank Lin (林宏)
@flinhong
I think I have found the problem. .concat(currentlyReadingArray.slice(0, currentlyReadingArray.length - 1)), but I have only one item in the array, it just replace the index(0) item. And then I delete the slice part, the array updates.
Guy Mograbi
@GuyMograbi
and how do you plan on fixing it?
Frank Lin (林宏)
@flinhong
After insert enough items in the array in firebase database, then I add the slice back. Now, it works well...
As I'm not familiar with JS, this makes some confusion for me.
By now, all your snippets works well, thanks! :smile:
verishal
@verishal
_escapedfragment request not render the https site . Any have idea .Why not render . please suggest me.
Guy Mograbi
@GuyMograbi
Which server are you using? Nginx? Is you source open?
Can i see it?
verishal
@verishal
No. Just i'm using Apache server

Http.conf file:

RewriteCond %{HTTPS} !=on

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

Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^_escapedfragment=/?(.*)$
RewriteCond %{HTTP_HOST} ^example.com [NC]

RewriteCond %{QUERY_STRING} _escapedfragment=/([^&]*)

RewriteRule ^$ / http://example.com:9090/$1? [R,L]

RewriteRule ^/(.*) https://example.com:9090/$1 [R,L]
ProxyPassReverse / https://example.com.com:9090/
Options Indexes FollowSymLinks MultiViews

Guy Mograbi
@GuyMograbi
please use
Backticks to enter code
I will try to reproduce once i have the code and find solution.
verishal
@verishal
Sorry Guy Morgrabi . i'm not understand what are you saying?
Guy Mograbi
@GuyMograbi
code like this using `backticks`
otherwise I can’t see what you pasted.
verishal
@verishal

Http.conf file:

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

Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^_escapedfragment=/?(.*)$
RewriteCond %{HTTP_HOST} ^example.com [NC]

RewriteCond %{QUERY_STRING} _escapedfragment=/([^&]*)
RewriteRule ^$ / http://example.com:9090/$1? [R,L]
RewriteRule ^/(.*) https://example.com:9090/$1 [R,L]
ProxyPassReverse / https://example.com.com:9090/
Options Indexes FollowSymLinks MultiViews

phantom js is not working https side. it is still work in http.
my URL is
phantomjs --disk-cache= --ssl-protocol=any -ignore-ssl-errors=true no /opt/bitnami/apache-tomcat/staging/ROOT/js/angular-seo-server.js 9090 https://stg.example.com
Guy Mograbi
@GuyMograbi

ok thanks.

This is the code I see.

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^_escapedfragment=/?(.*)$
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteCond %{QUERY_STRING} _escapedfragment=/([^&]*)
RewriteRule ^$ / http://example.com:9090/$1? [R,L]
RewriteRule ^/(.*) https://example.com:9090/$1 [R,L]
ProxyPassReverse / https://example.com.com:9090/
Options Indexes FollowSymLinks MultiViews

I think this line

RewriteCond %{QUERY_STRING} ^_escapedfragment=/?(.*)$

is incorrect and should be

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$

For convenience, you can also attach your configuration file

Regarding phantomjs, it has deprecated a couple of months ago, and headless chrome is now recommended.
I’d be happy to revisit my post and update it.

This project seems relevant

https://github.com/GoogleChrome/puppeteer

Do you want to schedule an online session to try and make some progress on this? Sounds like a good post material :)

verishal
@verishal
Thank you so much @GuyMograbi . i will try to this line.
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
Guy Mograbi
@GuyMograbi
@verishal great. Let me know when there is an update.
verishal
@verishal
Sure @GuyMograbi . i will update you.
verishal
@verishal
Hi @GuyMograbi . i hv try this line but did'nt work it .same issue page doesn't render on https .
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
verishal
@verishal
And May be SSL ISSUE in phantomjs . Please suggest me @GuyMograbi .how can resolve it .
verishal
@verishal
Hi @GuyMograbi . Can you help me because same error i'm facing ,i send you link
https://stackoverflow.com/questions/32970124/how-to-mod-rewrite-rewriterule-in-htaccess-to-redirect-all-escaped-fragment
but i didn't understand the issue .
Guy Mograbi
@GuyMograbi
@verishal sure thing. Give me a couple of days. I am in L.A. with the family. Will have a look once I am back.
verishal
@verishal
OK @GuyMograbi . Thank you.
verishal
@verishal
Hi @GuyMograbi . Issue have fixed . thank you so much ... thank you thank you