• My WordPress blog is located at mysite/blog. My site URL is pointing to the root, mysite, and is so indicated at Admin>Settings>General.

    My concern is that the site root files are visible at the URL mysite/blog, displaying the “Index of /blog”.

    How can I resolve this?

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • You need to speak to your hosts about this and ask them to disable directory indexing.

    Use 301 permanent redirect to redirect yoursiteurl to mysite/blog.

    How will that help?

    Thread Starter meltdown2

    (@meltdown2)

    Using a 301 to redirect that url to the root makes sense. But how do I redirect that specific url?

    If I use the .htaccess, what specific command am I adding? My current .htaccess is:

    # 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

    Thank you for your responses!

    Thread Starter meltdown2

    (@meltdown2)

    I’m still unclear as to how to redirect the url “mysite/blog” (which is where my WordPress install resides) to “mysite” (as it is set at Admin>Settings>General).

    Any suggestions would be much appreciated ??

    on genra–>setting enter you site as : mysite/blog
    OR
    Use 301 redirect plugin…..

    Thread Starter meltdown2

    (@meltdown2)

    Thanks for the response. The problem, as I see it, is that I’m not trying to redirect a specific page, as I could do with a redirect plugin, but rather the specific URL where my WordPress install resides. Would a plugin even do that for me?

    Thread Starter meltdown2

    (@meltdown2)

    At Admin>Settings>General I do have my site URL pointing to the root. But the URL at “mysite/blog” still displays the index of site files.

    There’s the problem… point your site URL to mysite/blog

    Thread Starter meltdown2

    (@meltdown2)

    But I want my site URL to be the root, even though the WordPress install resides at /blog. Therefore at Admin>Settings>General the settings are:

    WordPress Address (URL) mysite/blog/

    Site Address (URL) mysite/

    These settings work properly. The only problem is that at “mysite/blog/” the site files are displayed.

    I installed a 301 redirect plugin and redirected “mysite/blog/” to “mysite/” but there was no change. So I Uninstalled the plugin.

    In cpanel I added the “mysite/blog/” to “mysite/” redirect but there was no change.

    The simple solution is to Reinstall WordPress at the root domain i.e. no directory..

    Delete all existing files using file manager under in your hosting panel and reinstall it.

    Thread Starter meltdown2

    (@meltdown2)

    Hmm… Reinstalling is not so simple. The first thing that comes to mind is that we have over 10,000 listings that are geo-coded using Google maps whose locations would need to be re-recognized. And then there’s the hassle with WishList Member etc…

    Honestly I’m amazed that there isn’t a simple solution to this. WordPress is designed to be able to reside in a folder with the root domain as the entry point.

    @jagdishtiwari: Sorry but asking for login details is not allowed here unless you are a theme or plugin developer supporting his/her own products.

    @meltdown2: Please do not pass on site login details to just anyone. By issuing this warning, I am not implying that jagdishtiwari has anything but the best intentions but this is just basic site security. Never give out login details to random people on a forum.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘/blog index files displayed in browser’ is closed to new replies.