• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Domain Masking

Domain Masking

  • Unknown's avatar
    latifah44 · Member · Jun 20, 2024 at 3:47 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I’m trying to implement forward and masking of a url. I have a page hosted on vercel.com as mynewpage.vercel.app. The rest of my page are hosted on WordPress on myotherpages.com. I want for when the user types in myotherpages.com/newpage or navigates there from the nav bar for them to be forwarded to mynewpage.verce.app, but have the url in the address appear as myotherpages.com/newpage. I’m using the divi theme for all the other pages.

    So far I’ve installed a file manager plugin to get access to the htaccess file. I added this to the file:

    # BEGIN Custom Redirect and Masking
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/myotherpages.com/newpage$
    RewriteRule ^/myotherpages.com/newpage$ https://mynewpage.vercel.app [R=302,L]
    # END Custom Redirect and Masking
    `</code></pre>
    
    
    
    <p>And this to my functions.php file. </p>
    
    
    
    <pre class="wp-block-code"><code>function custom_redirect_my_new_page() {
        if (is_page('myotherpages.com/newpage')) {
            wp_redirect('https://mynewpage.vercel.app');
            exit();
        }
    }
    add_action('template_redirect', 'custom_redirect_my_new_page');</code></pre>
    
    
    
    <p>I'm able to be redirected but the masking isn't working. I'm using Divi theme, but I don't think that's relevant. </p>
    
  • Unknown's avatar
    staff-oliverv · Staff · Jun 20, 2024 at 5:29 pm
    • Copy link Copy link

    Hi @latifah44! You’ve reached out to WordPress.com, but the sites you mentioned are not hosted here. The only sites you have with us are https://zincchef.wordpress.com/ and https://test13072.wordpress.com/ which don’t seem to be being used.

    Based on your description, it sounds like you have a self-hosted WordPress.org site, which we cannot provide support for. Please contact your hosting provider or post to the WordPress.org Forums.

    You can read more about the differences between WordPress.com and WordPress.org here: https://wordpress.com/support/com-vs-org/

  • The topic ‘Domain Masking’ is closed to new replies.

Tags

  • account
  • currency
  • design
  • Domain

About this topic

  • In: Support
  • 1 participant
  • 1 reply
  • Last activity 2 years
  • Latest reply from latifah44

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions