Viewing 15 replies - 1 through 15 (of 18 total)
  • Is not very clear what you try to achieve, if you want to remove all your amp pages and redirect them to non-amp just deactivate amp plugin and redirect everything using this code inside .htaccess (put in at the top in file):

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

    Thread Starter memo240

    (@memo240)

    Thanks, no bro i want change AMPHTML tag.
    <link rel=”amphtml” href=”https://site.com” />

    i want new url >
    <link rel=”amphtml” href=”https://Xxaaxa.site.com” />

    • This reply was modified 6 years, 3 months ago by memo240.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @memo240,

    If you want to change the URL structure like the above then we have the option of enabling the subdomain option but that feature is in beta version – https://prnt.sc/ljfd7h

    Here is the beta version – https://github.com/ahmedkaludi/accelerated-mobile-pages/archive/0.9.98.zip

    Please install the beta version and check once and if you have any issues then let us know.

    Thread Starter memo240

    (@memo240)

    Thank you, work amp HTML TAG.
    i want change my site all amp urls to>

    site-com.cdn.ampproject.org/c/site.com/amp

    can you help me

    • This reply was modified 6 years, 3 months ago by memo240.
    Thread Starter memo240

    (@memo240)

    i’m check your amp subdomain not work…
    Not correct your amp sub.google not index your link
    <link rel=”amphtml” href=”https://amp.site.com/&#8221; />

    correct> >>
    <link rel=”amphtml” href=”https://amp.site.com/amp/&#8221; />

    Help me i how change amphtml tag php ?

    • This reply was modified 6 years, 3 months ago by memo240.
    Plugin Contributor ampforwp

    (@ampforwp)

    If you enable the subdomain option then your AMP version will be like – amp.site.com without “/amp” at the end of your URL.

    So you need your website to look like – “https://amp.site.com/amp/&#8221; with subdomain and also “/amp” at the end of URL?

    Thread Starter memo240

    (@memo240)

    Thanks bro,work!
    Please beta version upgrade and add Multi WordPress (Change subdomain) AMP.
    Multi wordpress not work sub amp(Error wp-signup.php) only i’m create new subdomain and i’m add my all posts, page and work amp subdomain. Review in my opinion

    Thank you!

    Plugin Contributor ampforwp

    (@ampforwp)

    Yes, the subdomain is in beta only and if we release it then it will work in single and in future we will definitely make it in Multi sites as well.

    Thank you for your feedback.

    Thread Starter memo240

    (@memo240)

    i want change my all amp url structure
    site.com to>>>>>>

    site-com.cdn.ampproject.org/c/site.com/amp
    can you help me ?

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi memo240,

    Previously as you said you want this structure “https://amp.site.com/amp/” for all your URL’s and now you’re telling that you need site-com.cdn.ampproject.org/c/site.com/amp, so could you tell me which structure do you want finally so that I can update my Dev team?

    Thread Starter memo240

    (@memo240)

    i want url >
    subdomain-site-com.cdn.ampproject.org/c/subdomain.site.com/amp

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @memo240,

    Let me keep you informed that this “subdomain-site-com.cdn.ampproject.org” is decided by Google, we do not have any control over it. and about subdomain.site.com/amp you can install WordPress on your Subdomain and AMP which will solve your concern

    or tell me do you want subdomain.(“your primary site name”).com/amp?

    Thread Starter memo240

    (@memo240)

    help me not a my site

    Plugin Contributor ampforwp

    (@ampforwp)

    Sorry you cannot change your amp HTML URL to – subdomain-site-com.cdn.ampproject.org/c/subdomain.site.com/amp with our AMP plugin

    Thread Starter memo240

    (@memo240)

    but I see on other sites (your amp plugin)

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Change AMP URL’ is closed to new replies.