Viewing 4 replies - 1 through 4 (of 4 total)
  • Timothy Jacobs

    (@timothyblynjacobs)

    Try adding a .htaccess file to your mobile app directory and add this code

    <IfModule mod_rewrite.c>
    
    #Disable rewriting
    RewriteEngine Off
    
    </IfModule>

    Thread Starter dave

    (@mozdzanowski)

    Hm, tried that, but it’s still showing the WP site 404 page. Any other ideas?

    The mobile app directory is in the same directory as directories like “wp-content” and “wp-includes”, etc. Could this be a problem with my permalink settings thinking /mobileapp/ is a WP page?

    Timothy Jacobs

    (@timothyblynjacobs)

    Typically, yes. If you turned off pretty permalinks, it shouldn’t be an issue, but that wouldn’t be a very helpful solution, now would it!

    That usually works for me, try out this one.

    Thread Starter dave

    (@mozdzanowski)

    When I add the line suggested in that post to my htaccess file (with the appropriate directory name obviously), I get a “Malware detected” page, and when I “proceed anyways”, it still gives me the “404 Not found”.

    Do I need to have the /mobileapp/ folder in a particular directory? Or isn’t that htaccess line finding it anywhere under root? (/)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Loading a root directory separately with pretty permalinks’ is closed to new replies.