• Resolved mzimmers

    (@mzimmers)


    Hi –

    I’ve already read this excellent codex:

    Giving WordPress Its Own Directory

    And, before I plunge, I just have a few questions.

    1. Will this eliminate the “wordpress” subdirectory in the site’s URL? This is really what I want to accomplish.
    2. step 7 talks about copying the WP .htaccess file into the root directory. I already have an .htaccess file in the root directory. Here are its contents:
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^widebandcomputers.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.widebandcomputers.com$
      RewriteRule ^/?$ "http\:\/\/www\.widebandcomputers\.com\/wordpress" [R=301,L]

      And here are the contents of the .htaccess file in the WP subdirectory:

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

      Much of this stuff is truly Greek to me, but I imagine that I would want to add the WP code to the root code, not replace it. Can someone provide some guidance on this?

    Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mzimmers

    (@mzimmers)

    Anyone?

    1. yes, it will get rid of the wordpress directory in the url
    2. I don’t know much about .htaccess, but that first bit of code looks like it’s redirecting to /wordpress subdirectory. So I’m not sure you would want to keep it.

    I’d replace the old with the new (BUT keep a backup in case that isn’t right), or you may have to modify that original block, I just don’t know enough about the code to tell you for certain

    Thread Starter mzimmers

    (@mzimmers)

    Thanks. It turns out that the wordpress directory’s .htaccess file was empty, so that was a no-op. Things seem to be working now (though I’m holding my breath a bit).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘giving WP its own directory’ is closed to new replies.