• Resolved dailyvideo

    (@dailyvideo)


    Installing wp in a sub directory to maintain the current site. Problem is their existing .htaccess is denying me access to the sub directory to complete the install. Honestly .htaccess is a bit baffling to me. Would someone recommend a way for me to temporarily bypass or not disrupt their current site by modifying the .htaccess so I can finish install?

    Here is the file. I have replaced their domain with the word domain.

    THANKS!

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$
    RewriteRule ^/?$ “http\:\/\/domain\.org\/” [R=301,L]

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    DirectoryIndex home.php
    ErrorDocument 400 /error.html
    ErrorDocument 401 /error.html
    ErrorDocument 403 /error.html
    ErrorDocument 404 /error.html
    ErrorDocument 500 /error.html
    Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
    RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$
    RewriteRule ^/?$ “http\:\/\/domain\.org\/” [R=301,L]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dailyvideo

    (@dailyvideo)

    Update. The problem seems to be the line: DirectoryIndex home.php

    If I delete that line I can finish installing WP but then their site goes down. If I reinsert the line their current site goes back up but I can’t access WP.

    Ideas? Thanks.

    Thread Starter dailyvideo

    (@dailyvideo)

    So if you run into this try this.

    Go in your subdirectory where WP is installed. Find your .htaccess there (not in the root of the site) and add this to the very top:

    DirectoryIndex index.php index.html

    Then you should be able to access your WP admin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Existing .htaccess won't allow WP install in sub directory’ is closed to new replies.