• Hi! I’ve found a lot of support questions about how to have two different WordPress set-ups on one domain but what I’m trying to do is a little different.

    I only want to use WordPress in my sub-directory (www.quinnluu.com/blog).
    I’ve coded my other pages, including index.php. I only want to use WP for blogging purposes, meaning WordPress is only used when people go to https://www.quinnluu.com/blog.

    My .htcaccess looks like this (to remove .php from my urls):

    “RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]”

    I’ve installed WP to quinnluu.com/blog, but when I try to log in at quinnluu.com/blog/wp-admin, I get a 404. I’m wondering if this is because something is missing in my htcaccess?

    Please let me know your thoughts and if I can clarify on anything!
    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter innil

    (@quinnluu)

    Yay nvm! Figured it out ?? If anyone else is having this problem just make an .htcaccess file in the sub-directory that includes:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

Viewing 1 replies (of 1 total)
  • The topic ‘Use WordPress ONLY in sub-directory’ is closed to new replies.