Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did everything but still not working #3

Open
kzatin opened this issue Oct 8, 2020 · 4 comments
Open

Did everything but still not working #3

kzatin opened this issue Oct 8, 2020 · 4 comments

Comments

@kzatin
Copy link

kzatin commented Oct 8, 2020

I have understood both files but if i am writing same code into both .htaccess and htpd.conf then it show nothing. I have tried with endpoint testing then it worked but why not in apache. what i am missing?

@marcGiroux83
Copy link

Check that the line:

RewriteRule ^(index.html|index.php)?(.*) https://service.prerender.io/%{REQUEST_SCHEME}://%{HTTP_HOST}/$2 [P,END]

make sure their is a / between {HTTP_HOST} and $2 (there is a bug in the example)

@varrocs
Copy link
Contributor

varrocs commented Dec 13, 2021

actually we deliberately removed that / because it caused //s appeared in the cached URLs. $2 should contain the leading / Do you say that it's not working in some cases?

@marcGiroux83
Copy link

marcGiroux83 commented Dec 13, 2021

it does not work at all without the / before $2. It always tries (domain.comstartofpath/page.hmtl)

@varrocs
Copy link
Contributor

varrocs commented Dec 13, 2021

This is the current address of the official prerender.io support: https://prerender.typeform.com/to/MRZgaP4y
Please send your complaints here and we'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants