• Resolved dinotoyblog

    (@dinotoyblog)


    This is an exciting plugin and I’m looking forward to seeing how it grows. I’ve successfully installed it on several sites but I’m unable to get it working on a blog located in a subdirectory. I’m trying to add the below code to the .htaccess file for that site (Apache).

    RedirectMatch "^\/\.well-known(.*)$" "\/blog\/\.well-known$1"

    “Where ‘blog’ is the path to the subdirectory at which your blog resides.”

    However, I’m unsuccessful and wonder if I’m putting in the subdirectory path correctly. The site is in a first level subdirectory at “blog”, so will the code work as is, or do I need to include the full path/domain name? Is this the same at the URL? Perhaps someone could show me a working example of the code?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    Have you added the snippet to the htaccess folder of the root directory?

    Thread Starter dinotoyblog

    (@dinotoyblog)

    Thanks for responding. Yes, I added the code to the .htaccess file in the root directory, but it didn’t do anything, which is why I wondered if I put in the subdirectory path in the correct format. Is it enough to put just the first level subfolder (i.e. “blog”) or do I need to include the full path (beginning “var/www/html…”) or full url (beginning https”)?

    • This reply was modified 2 years, 1 month ago by dinotoyblog.
    Thread Starter dinotoyblog

    (@dinotoyblog)

    I’m just following up to report that the code in the .htaccess file is working now – I used the code as is (i.e. just the word “blog”). I think my issue was caused by a cache-related delay.

    I still see an error in site health but, despite that, the plugin seems to be working, e.g. blog users can be found and followed on Mastodon, and their blog posts are being shared to Mastodon.

    Great plugin, thanks!

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    I will have a look, why it still throws the error. Thanks for the feedback!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess code’ is closed to new replies.