Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Bash
tagDiv Member

Ok thanks,
i’ll try this
Have a nice day

Bash
tagDiv Member

Hello Bettina,
thanks for the answer but we don’t need a plugin as we can achevieve this in the HTACCESS file. We just need a litlle help on the exact syntax to use, because i’m not a specialist of this.

# Redirect from AMP to non-AMP path
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
RewriteRule ^ %1/ [R=301,L]

Perhaps we should replace
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
by
RewriteCond %{REQUEST_URI} (.+)/?amp(.*)$
based on the AMP url structure witch is sommething like https://domain.com/page/?amp=
What do you think ?

  • This reply was modified 4 years by Bash.
Bash
tagDiv Member

Hello Bettina,
The images are displaying fine because i’have removed the rewrite code from HTACCESS.
How can i modify this code to rewrite only AMP pages and not all media and pages with the expression “amp” in the URL ?
Thanks for your support.

Bash
tagDiv Member

Thanks !
But i think i’ve found the problem, it’s because of a rewrite rule i’ve put in the HTACCESS file to get rid of AMP :
# Redirect from AMP to non-AMP path
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/*amp(.*)$
RewriteRule ^ %1/ [R=301,L]

And now all the images witn “AMP” in the name (like camping) are invisible
How can i do to fix it ?
Thanks for your response

Viewing 4 posts - 1 through 4 (of 4 total)