• Resolved suaraparau

    (@suaraparau)


    Hi,

    Currently I have website with 2 version but same postings, also same database. So, the address is https://m.domain.com and https://www.domain.com. When I click a post from mobile gadget it redirect to link with prefix https://m.domain.com/postingexample, and if I visit from desktop the link address being https://www.domain.com/postingexample.

    Same posting url address but different prefix.

    I configured this many years ago with Mobile Domain plugin. Now, this plugin is not exist anymore in wordpress plugin directory.

    I have a plan to remove this plugin and redirect permanently all my post links in https://m.domain.com to https://www.domain.com. For these, I should use Uninstall Mobile Domain developed by the same author (Yusuf).

    Unfortunately, same one. The plugin is not exist anymore in wordpress plugin directory.

    So how I can remove my https://m.domain.com and redirect all the hyperlinks out there (in facebook, twitter, blog, etc) securely.

    Any help, pls? Maybe script from .htacces like moving to new domain or….?? I’m a noobs. Thank you so much for help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried just using Jetpack plugin? It has mobile view for phone and tablet devices.

    https://www.ads-software.com/plugins/jetpack/

    As for removing the old plugin, you should do so by following these instructions:

    Deactivate the plugin and remove it manually through your FTP program. Log in to the site via your FTP program. Go to the plugin directory and find where the plugin is installed. Delete the WordPress plugin folder and/or files from your server.

    https://codex.www.ads-software.com/Managing_Plugins

    Let me know if any of that information was useful to you.

    Thread Starter suaraparau

    (@suaraparau)

    Thanks for your respond David
    But sorry, maybe my english is too bad. I mean I want to deactivate my subdomain (https://m.domain.com); remove all mobile plugin and use responsive theme. So in future I only use main domain (https://www.domain.com) for my website.

    At the same time, I want my existed backlinks https://m.domain.com/ALL POST PERMALINK redirected to same posts hyperlink from main domain, -without https://m.) and google not found it as 404 error page.

    These are examples of my website’s hyperlinks now:
    1. -https://www.mywebsitedomain.com/ketika-malapetaka-menimpa-anda/——–> From Desktop Version
    -https://m.mywebsitedomain.com/ketika-malapetaka-menimpa-anda/——–> From Mobile Version

    2. -https://www.mywebsitedomain.com/habis-makan-koq-selalu-tidur/——–> From Desktop Version
    -https://m.mywebsitedomain.com/habis-makan-koq-selalu-tidur/——–> From Mobile Version

    3. etc.

    In the future I want to use only desktop version (off course with responsive theme)

    https://www.ads-software.com/plugins/simple-mobile-url-redirect/

    Something like this plugin might be a solution, just select which URL you want to be re-directed to.

    As far as changing the PermaLink structure, this plugin might also be useful.

    https://www.ads-software.com/plugins/backlinks-saver/

    I recommend the plugins for the ease of use and little chance of it failing due to it being exceptionally functional for the people who use it.

    Let me know if this works or if we should try another method.

    Thread Starter suaraparau

    (@suaraparau)

    After browsing, now I can fix it:
    insert this script to .htaccess

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^m\.mywebsitedomain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.m\.mywebsitedomain\.com$
    RewriteRule ^ https://www.mywebsitedomain.com%{REQUEST_URI} [R=301,L]

    Thankyou very much

    Glad you found a solution, thanks for posting it so that others may see.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect Mobile Version Permanently to Desktop Version’ is closed to new replies.