• After dealing with the INFINITE REDIRECT LOOP (wordpress directory redirecting to my root html folder), i played with HTACCESS for literally 24 hours. At the end of the night, i was stuck between getting the 500 error, then updating my HTACCESS then getting a 301 error – going back and fourth.

    Now, im stuck on the 500 error! ive check the HTACCESS, installed in new directory, check hosting redirecting urls and more.

    CURRENTLY:
    If i remove my htaccess code, the url works but im getting a 500 error.
    If i add the htaccess code (see below), the url begins the loop back to my public html folder (which load my main site instead of my wordpress directory site)

    HTACCESS CONTENT:

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Looks like the rewrite rules are wrong:
    # 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

    Thread Starter jordantechllc

    (@jordantechllc)

    Hello,

    I am hosting my domain at the following subfolder (citiera) – https://www.domain.com/citiera

    I read that I should use my HTACCESS this way when my WP will be installed at a subfolder. Please inform me if this is correct.

    Hang on:

    Are you under Windows Hosting or Apache Linux?

    Thread Starter jordantechllc

    (@jordantechllc)

    I used windows hosting.

    Your server reports: Server:”nginx” – Just to be clear, are you running nginx on a Windows server?

    .html in /citiera renders, php is not. (see yoursite.com/citiera/readme.html)

    Are you trying to configure a sub-domain that you’ve created – ie.. citiera.yoursite.com – or are you just leaving WordPress in a sub-directory so it’s accessed from yoursite.com/citiera ?

    CURRENTLY:
    If i remove my htaccess code, the url works but im getting a 500 error.

    Probably best to remove the .htaccess rules and fix whatever is causing the 500 error first.
    WordPress should work fine in a sub-directory with default permalinks. Once you fix the 500, you can change your permalinks.

    What did you put in the WordPress site URLs when you installed WordPress? Are they both yoursite.com/citiera, or something different?

    • This reply was modified 8 years, 2 months ago by Clayton James.
    Thread Starter jordantechllc

    (@jordantechllc)

    Hello,

    I have no clue what “nginx” is and I’m unsure if thats what i have. I have shared hosting with a web hosting company. I have never dealt with linux, so i am sure this is all windows based.

    .html in /citiera renders, php is not. (see yoursite.com/citiera/readme.html)

    Please help me with what you’re meaning by this. I’ve read the read me and still no clue.

    Are you trying to configure a sub-domain that you’ve created – ie.. citiera.yoursite.com – or are you just leaving WordPress in a sub-directory so it’s accessed from yoursite.com/citiera ?

    I am leaving it in a sub-directory, which is https://www.domain.com/citiera.

    What did you put in the WordPress site URLs when you installed WordPress? Are they both yoursite.com/citiera, or something different?

    I put:
    Home – https://www.domain.com
    Site – https://www.domain.com/citiera
    BUT, i recently accidentally changed the site to “google.com” for testing, which then locked me out of the admin site, so i checked the database and the tables but none of them showed “google.com” it still showed what i had before which was domain.com/citiera, but i was still locked out. I’ve now managed to get the site working when browsing to directories inside wordpress (citiera folder) such as wp-admin/images, etc…. BUT… (read below)

    CURRENT UPDATE:

    – when browsing to https://www.domain.com/citiera (where my wordpress is installed), it performs the inifite loop back to my root html file which is not part of my wordpress install/folder.
    – I am getting a 500 error on my admin page, I wasnt before

    https://jordantechnology.net/citiera/wp-admin/

    i recently accidentally changed the site to “google.com” for testing, which then locked me out of the admin site,

    That won’t ever work. You need to own the domain name you put in the addresses, and it needs to point to the directory where WordPress is installed.

    I put:
    Home – https://www.domain.com
    Site – https://www.domain.com/citiera

    Start by removing the contents of your .htaccess file, then change both URL’s in your WordPress installation to https://jordantechnology.net/citiera and see if that does the job.

    Thread Starter jordantechllc

    (@jordantechllc)

    @claytonjames,

    I wish i knew how, but i cannot access the admin area since i made that change. I’ve been locked out. Now after i sorted it out, im not facing a 500 error when browsing to the Admin folder ONLY.

    Why am i facing a 500 error?

    Thread Starter jordantechllc

    (@jordantechllc)

    LATEST UPDATE:

    Okay, i got the 500 error resolved. now im back to my issue which is my wordpress install is looping indefinitely to my server root html directory which is not apart of my wp install.

    How do i make my wordpress NOt redirect to my root url but instead redirect to the index of my wordpress install like it should? I’ve been fighting this for days.

    Were you able to change both URL’s in your dashboard to https://jordantechnology.net/citiera?

    If you can’t get to the dashboard and general settings to do that, there are instructions for several different methods of changing the URL’s located here: Changing The Site URL

    The phpMyAdmin method might be the most efficient route: https://codex.www.ads-software.com/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Editing your current themes functions.php file is another efficient method that can be done using your FTP client. https://codex.www.ads-software.com/Changing_The_Site_URL#Edit_functions.php

    Please read that info carefully.

    • This reply was modified 8 years, 2 months ago by Clayton James.
    Thread Starter jordantechllc

    (@jordantechllc)

    Yes, they are both set and defined as those.

    The only issues is my wordpress main site is redirecting to my hosting root url infinitely. Will not stop and i cannot see my custom theme at all. Not even in the theme custmization page.

    Can someone assist?

    Can someone assist?

    Unfortunately, short of a lucky guess at what might be incorrectly configured, there are so many variables that it’s impossible to wave a magic wand and make a problem just go away. Especially if you’re new to installing and setting up wordpress, and also dealing with server issues that might be unfamiliar to you.

    i cannot see my custom theme at all. Not even in the theme customization page.

    That’s new info. There’s a couple of reasons that might happen, but it could definitely be a contributing factor. Here’s something you might try in light of that new information – just some standard trouble shooting.

    – log into your dashboard and re-apply the default WordPress theme? Does the symptom change?

    Just so we’re on the same page regarding this persistent redirect issue – your .htaccess file is still empty, and it’s located in the /citiera directory, not in the root directory with your HTML site files, correct?

    Just to lessen your frustration a bit if the site shows no improvement, it may be best to contact your hosts support group and ask them if they can sort your redirect issue for you.

    You were under the impression you were using a windows (IIS?) server environment, yet the server seems to report nginx (proxy maybe?). That being said, I think nginx is probably going to ignore .htacces rules anyhow (Windows-IIS will too). If your current issue isn’t related to a malfunctioning theme, you should know in short order. Then you might have your hosts support group take a quick look at your configuration to see if they can spot what is causing the 301 redirect.

    Thread Starter jordantechllc

    (@jordantechllc)

    When i say i cannot see the theme, i mean when i select the theme then choose CUSTOMIZE, instead of the theme appearing in the customization box, it shows my root html site (totally different from my wordpress) instead.

    My htaccess has been revised/removed/updated, and the same issue happens (redirect). Even after selecting the default theme, the same thing happens.

    I think it may be time to ask your support team if they can take a look at your config files and see if they can spot any obvious reason for the redirect.

    The index.php files in your/wp-content, /themes, and /plugins directories respond as I would expect them to with a blank page and no redirect.

    The only time I get a 301 redirect is when asking your site for /citiera/index.php.

    If your support group can rule out an errant site configuration issue as the cause of the redirect, you might just want to try a manual re-install. Maybe you have a missing/corrupt file or incomplete install due to a file transfer error or some other issue. Instructions for a manual reinstall can be found here: https://codex.www.ads-software.com/Updating_WordPress#Manual_Update Read carefully if you decide to try it, there are a couple of files and directories that need special attention.

    Out of curiosity, what did you change to get rid of the 500 error?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘500 Error – Not an Easy One’ is closed to new replies.