• Hi,
    I installed WordPress in a subdirectory called /ebiz/
    Then moved index.php to the home directory successfully. All worked fine.
    Then I added a mod_rewrite to so it shows /%year%/%monthnum%/%day%/%postname%
    The URL rewrites but when I click on the links for articles or categories I get the message “File Not Found”
    If I change the Options to run index.php in the /ebiz/ directory everything works fine. But when I change it to the main directory it cannot find the files.
    It sounds like a path problem but I am not sure what to look at. When I generated the permalink mod_rewrite code in the program the program files were set for /ebiz/ and for index.php to be in the main directory.
    Can I use rewrite the permalinks and still run index.php in the root with the files in a subdirectory?
    Blog at https://www.georgiabizupdate.com/index.php
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you updated the .htaccess file?

    Thread Starter raer

    (@raer)

    I have updated the .htaccess file.

    Set index.php to run in the root. Generate rewrite rules via the options-permalink.php page. These rules should not contain /ebiz/. Put the rewrite rules in the .htaccess in the root directory, not the /ebiz/ subdirectory.

    Thread Starter raer

    (@raer)

    Perfect! Thanks so much!
    It works just fine now.

    Thread Starter raer

    (@raer)

    Well it wasn’t as perfect as I thought. The links now work but when I tried to login I get “Page Not Found”
    So it seems that I neither way works. Am I stuck running the script in the home directory in order to use mod_rewrite for the permalinks?
    Any other suggestions?
    Thanks in advance for your help!

    Thread Starter raer

    (@raer)

    I thought I could reverse the effect of adding .htaccess in the main directory. Since my ftp won’t show the file in order to delete it I uploaded another file and renamed it to .htaccess that was empty (just one line no characters).
    So now nothing is working.
    If I want to move the installation to the home/main directory, can I just copy the files there or do I need to delete my database and reinstall?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page Not Found After specifying Mod-Rewrite’ is closed to new replies.