Title: bselfors's Replies | WordPress.org

---

# bselfors

  [  ](https://wordpress.org/support/users/bselfors/)

 *   [Profile](https://wordpress.org/support/users/bselfors/)
 *   [Topics Started](https://wordpress.org/support/users/bselfors/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bselfors/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bselfors/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bselfors/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bselfors/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bselfors/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/bselfors/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bselfors/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cloudflare Stream Video] URL option blocked by CORS?](https://wordpress.org/support/topic/url-option-blocked-by-cors/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/url-option-blocked-by-cors/#post-13156204)
 * PS: I removed the video ID.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Homepage Redirect](https://wordpress.org/support/topic/amp-homepage-redirect/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/amp-homepage-redirect/#post-11525819)
 * Hello, I am just trying to understand the best practices in regard to the homepage.
   Should the code be forcing a homepage redirect on mobile?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Redirect Issue for Indexing](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/#post-11507333)
 * I updated the latest version of the plugin except for our custom template files.
   However, I am not sure what the best practice is when it comes to the homepage.
   On one hand, I want to force AMP on any mobile traffic but for our homepage, 
   we ended up redirecting to another fallback homepage called [https://flowersfaq.com/home/?amp](https://flowersfaq.com/home/?amp).
   It does not seem like good practice to 301 the homepage on mobile traffic and
   maybe that is why Webmaster is not indexing our site as it should…What do you
   think?
 *     ```
       /**
        * Redirect to URL
        */
   
       function redirectTo($url) {
           wp_redirect( $url, 301 );
           exit;
       }
   
       function curPageURL() {
        $pageURL = 'http';
        if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
        $pageURL .= "://";
        if ($_SERVER["SERVER_PORT"] != "80") {
         $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
        } else {
         $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
        }
        return $pageURL;
       }
       $curl = parse_url(curPageURL());
       $ampurl = '';
       $ampurl = $curl['scheme'] ."://". $curl['host'] . $curl['path'] .'?amp' ;
       if ( !empty($curl['query']) ) {
       	$ampurl .= '&'.$curl['query'];
       }
   
       if ( empty($curl['path']) || $curl['path'] == "/" ) {
       	$ampurl = $curl['scheme'] ."://". $curl['host'] ."/home/?amp";
       }
   
       if ( is_null($_GET['amp']) && wp_is_mobile() ) {
       	redirectTo($ampurl);
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Redirect Issue for Indexing](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/#post-11245694)
 * Would the update be a critical thing to address? The site is running well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Redirect Issue for Indexing](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing-2/#post-11236873)
 * Okay, and yes that’s correct about the canonical.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP Redirect Issue for Indexing](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing/#post-11236871)
 * We have custom amp templates, deactivating our plugin would crash the site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP for WP - Accelerated Mobile Pages] AMP Redirect Issue for Indexing](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-redirect-issue-for-indexing/#post-11228219)
 * That’s the weird thing…no errors are showing up. Just not indexing my pages. 
   Its been like a year! I will reach out to the other plugin support. I think it
   might have something to do with canonicals overwriting or something…still trying
   to understand why no indexing…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stickers for WooCommerce] Sold Sticker not showing on product listings](https://wordpress.org/support/topic/sold-sticker-not-showing-on-product-listings/)
 *  [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/sold-sticker-not-showing-on-product-listings/#post-5581405)
 * I am having this same issue for the “Sold” which should read “Sold Out” on the
   gallery product. Works on the single product. Any suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Admin Microblog] Using SyntaxHighlighter and other HTML](https://wordpress.org/support/topic/using-syntaxhighlighter-and-other-html/)
 *  [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/using-syntaxhighlighter-and-other-html/#post-3460333)
 * What does this look like?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Login for every site?](https://wordpress.org/support/topic/login-for-every-site/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/login-for-every-site/#post-3063930)
 * Hi Mika, Thanks for your help. I dont have the network admin showing in my sub
   domain login. Could you give me a reference point to debugging this issue? IS
   there something in particular I should be looking for so this button shows up
   in my sub domains? Thanks again
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Login for every site?](https://wordpress.org/support/topic/login-for-every-site/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/login-for-every-site/#post-3063913)
 * Just turn off my plugins…Then what? Also, It forces me to login to every sub 
   domain via the wordpress login. HELP 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Migrated site now server error, permalink issues](https://wordpress.org/support/topic/migrated-site-now-server-error-permalink-issues/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [14 years ago](https://wordpress.org/support/topic/migrated-site-now-server-error-permalink-issues/#post-2771759)
 * I used my ssl and not sure where to begin or why it did this? Thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["insert into post" button isn't working](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/#post-2226698)
 * I found the two plugins that were corrupted or whatever and i tried re-uploading
   them same thing still happens what could be the cause?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["insert into post" button isn't working](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/#post-2226692)
 * Okay It works now I will troubleshoot each plugin. One other thing! I now have
   this little white box that follows my scroll bar on the backend, it follows my
   scroll bar and covers over my content…? I just updated to the newest version…
   thank again
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["insert into post" button isn't working](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/)
 *  Thread Starter [bselfors](https://wordpress.org/support/users/bselfors/)
 * (@bselfors)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/insert-into-post-button-isnt-working/#post-2226670)
 * Thanks so much will give it a try.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/bselfors/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bselfors/replies/page/2/?output_format=md)