Title: Different URL Path than amphtml
Last modified: March 20, 2020

---

# Different URL Path than amphtml

 *  Resolved [fgirtan1](https://wordpress.org/support/users/fgirtan1/)
 * (@fgirtan1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/different-url-path-than-amphtml/)
 * Hello,
 * I’ve just implemented AMP on a blog and I have some issues with URL, which were
   reported by Google today.
 * All the AMP url are finishing with “?amp” but in amphtml all my url are finishing
   with “/amp”, the last ones being the one that Google sees as well.
 * Could anyone tell me if there is a setting that I could use to change from ?amp
   to /amp?
    I’m using the Reader version of the plug-in (former classic).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Pascal Birchler](https://wordpress.org/support/users/swissspidy/)
 * (@swissspidy)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/different-url-path-than-amphtml/#post-12565068)
 * Hi there
 * Could you please share the URL to your website so we can better assist you? Ideally,
   share the URL of a specific page that is flagged to have issues.
 *  Thread Starter [fgirtan1](https://wordpress.org/support/users/fgirtan1/)
 * (@fgirtan1)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/different-url-path-than-amphtml/#post-12565661)
 * Hi Pascal,
 * Here is one example – [https://www.veeam.com/blog/free-windows-linux-backup-while-you-work-from-home.html?amp](https://www.veeam.com/blog/free-windows-linux-backup-while-you-work-from-home.html?amp).
 * This is the funtional url but amphtml is [https://www.veeam.com/blog/free-windows-linux-backup-while-you-work-from-home.html/amp](https://www.veeam.com/blog/free-windows-linux-backup-while-you-work-from-home.html/amp)
   and Google sees this one.
 * My desire is to move from ?amp to /amp as the plugin specifies in amphtml tag
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/different-url-path-than-amphtml/#post-12565688)
 * [@fgirtan1](https://wordpress.org/support/users/fgirtan1/) Note that we are working
   on migrating all URLs to `?amp` rather than `/amp/`. See [https://github.com/ampproject/amp-wp/issues/2204](https://github.com/ampproject/amp-wp/issues/2204)
 * Please use this code to ensure the `amphtml` link uses `?amp` rather than `/amp`:
 *     ```
       // Force using query var instead of endpoint.
       add_filter( 'amp_pre_get_permalink', function( $pre, $post_id ) {
       	return add_query_arg( amp_get_slug(), '1', get_permalink( $post_id ) );
       }, 10, 2 );
       ```
   
 * That should fix the problem for you.
    -  This reply was modified 6 years, 2 months ago by [Weston Ruter](https://wordpress.org/support/users/westonruter/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Different URL Path than amphtml’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [url](https://wordpress.org/support/topic-tag/url/)

 * 3 replies
 * 3 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/different-url-path-than-amphtml/#post-12565688)
 * Status: resolved