peppermint
(Pedro Perdomo M.)
13 August 2021 23:56
1
I understand very well the importance of the URL in the Joe Workman PDF Embed stack. The address of the PDF must be that of the site.
https://www.mysite.com works differently than http://mysite.com in that regard.
On my site I have a PDF Embed page with the following URL:
https://svmi.web.ve/wh/documentos/ESTATUTOS-SVMI-2017.pdf
Access is through a menu on the site.
The problem is that some users enter the site with https://svmi.web.ve and others with https://www.svmi.web.ve , so PDF Embed gives an error depending on each case.
I wonder if there is any way to “force” to always open the Embed page with https://svmi.web.ve .
Sorry if I don’t explain myself well.
thang
(David)
14 August 2021 00:53
3
You need to use an htaccess rule to force a redirect to either www or non-www. www or non-www is also treated by google as two separate urls, so it should be done for SEO purposes as well. So you need to choose which you prefer - www or non-www.
See this post:
RapidWeaver 8 added a nice little htaccess file editor; it can be found under the publishing settings:
[2020-03-16_13-15-08]
Here are a couple of simple htaccess file redirects for common conditions.
These are generic, not URL specific, so these should NOT require any modifications.
Force HTTPS and Remove WWW:
# Force HTTPS and Remove WWW (this is a comment)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
Rew…
4 Likes
true…I do have that set too.
peppermint
(Pedro Perdomo M.)
14 August 2021 01:12
5
Many thanks to Joe and David.
Seems to work
1 Like
No problem always good to help
system
(system)
Closed
13 September 2021 11:35
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.