• Resolved charlyp

    (@charlyp)


    HI,

    Love the idea of this plugin, but so far I failed to make it work. I browsed the threads of this forum, but I couldn’t find a solution to my problem, so I’m calling for help.

    WordPress is installed in a directory (say /wp to simplify) and I have Rewrite rules in the .htaccess located in the root directory to invisibly redirect visitors in the /wp directory.

    This means that myfirstdomain.com actually goes to myfirstdomain.com/wp only the /wp part is hidden –it only shows in the admin section: myfirstdomain.com/wp/wp-admin

    Now how would I implement a second domain name to also be redirected into /wp? Do I need to write the same rules? Actually I tried that and failed so there must be something more than just adding the same Rewrite rules with a different domain.

    As a bonus question, I’d like the second domain to go directly to a certain page, say myseconddomain.com/thispage. All other pages should use the first domain.

    Thanks for your help!

    Ch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello Ch,

    What happened when you added the second domain + same redirect rules from the primary domain? Have you got an error? A redirect loop?

    About your bonus question, you can do that by setting a base path for the additional domain in the plugin settings.

    Thread Starter charlyp

    (@charlyp)

    Hi Gustavo,

    Thanks for the prompt reply!

    Actually, it works with the homepage (myseconddomain.com) and with all srcs, but all internal pages (myseconddomain.com/thatpage) return a 404. The first still domain works as expected.

    About the base path (/thispage), I tried that –and it redirects correctly to that page– but it returns the same 404 error.

    Ch.

    Thread Starter charlyp

    (@charlyp)

    Okay, forget it, I’m stupid ??

    I missed one of the conditions in the Rewrite rules!

    So it works as advertized, that’s absolutely awesome, you’re the best!

    Thank a lot for your insanely quick support ??

    Best,
    Ch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What about WordPress installed in a directory?’ is closed to new replies.