somewhere working somewhere not (5 posts)

  1. karsun
    Posted 2 years ago #

    Hello everyone,

    I have one site http://www.bharatcityphase2.com/

    Recently, I have installed the wordpress on the directory:

    Somewhere http://www.bharatcityphase2.com/ghaziabad is working and somewhere it is not. Getting this error :(

    Not Found

    The requested URL /ghaziabad/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    But bharatcityphase2.com is working everywhere.

    I have two .htacess files:

    .htacess file code for http://www.bharatcityphase2.com
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    .htacess file code for http://www.bharatcityphase2.com/ghaziabad
    # BEGIN WordPress
    RewriteEngine on

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

    Please help me in this :( what's wrong here?


  2. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Have you tried these steps:
    - deactivate all plugins and see if the problem persists. If it solves the problem, activate plugins one by one until you find the problematic one
    - revert to Twenty Twelve theme and see if the issue is theme-specific
    - delete any inactive plugins
    - reinstall WordPress manually from a freshly downloaded copy except wp-content. Delete all existing files before uploading new files.

    Use FTP or your hosting control panel if you cannot access dashboard.
    Backup your site including database so that you can restore your site in case anything goes wrong.

  3. karsun
    Posted 2 years ago #

    Thanks Krishna for your valuable time. I have deleted all plugin once and tried. Problem was same. Also, Same thing was happening in case of Twenty Twelve Theme. Moreover, I have reinstalled WordPress Manually also, case was same. Now, I am thinking it's some server issue.

    What you think?


  4. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Now, I am thinking it's some server issue.

    You may, though I don't see any reason for such 404 errors.

    You can also try these:
    1. Just re-save your permalinks settings without making any changes
    2. Copy your permalinks to your computer and delete it. Then re-save the permalinks (a) without changing anything in the settings, and (b) it it does not help, change permalinks to default, save, and reset again to your current settings and save. While doing so, WordPress will re-create your permalinks correctly and possibly the errors may go away.

  5. karsun
    Posted 2 years ago #

    Krishna firstly, again thanks for your precious time.

    Yes, I tried all the possible things with the permalinks and reset it to my current settings. Now I am going to test the site on the different places. I hope it will work. I will back to you soon.


Topic Closed

This topic has been closed to new replies.

About this Topic