• Hi Everyone. I’m hoping somebody can help me. I’m running a test site which combines a static website with a wordpress blog. I’m using wordpress as an easy way to get multimedia and new content regularly on to the site.

    Due to that situation, I have wordpress installed on it’s own directory.

    Everything seems to be working very nicely, except that my wordpress landing page “title” says 404 not found. I can see it right in the code when I look at the source in the browser.

    How do i fix this to read something else, ideally “resources”?

    Here’s the wordpress page https://irisaffiliates.info/wpkitten

Viewing 13 replies - 1 through 13 (of 13 total)
  • You need to check your theme’s index.php template file to see what is generating the content for the <title></title> tag.

    Thread Starter Templeflower

    (@templeflower)

    How would I accomplish that in a cpanel environment?

    Personally, I’d download the file via cPanel but you could also check it via Appearance -> Editor.

    Thread Starter Templeflower

    (@templeflower)

    Ok, I’ve checked and rechecked the index.php content. I see where it is generating the post title, but I cannot find where it is generating the main page title!

    Here is all the code: (Maybe I’m just not seeing it??)

    whoops, clearly didnt do that right! Ok… here’s the link to the pastebin with the code. (I hope!)

    https://pastebin.com/tgAPMDZ0

    Try looking in header.php.

    Thread Starter Templeflower

    (@templeflower)

    yep, there it is… now, I’m definitely not a code expert. What portion of this should I change, so my title on irisaffiliates.info/wpkitten shows “resources”.

    https://pastebin.com/Zg6BdHxP

    Try changing if (is_home()) to if (is_home() || is_front_page()).

    Thread Starter Templeflower

    (@templeflower)

    Ok, I gave that a shot. It’s still giving the title as 404 not found.

    That was one badly messed up header file. Try https://pastebin.com/zJ45Gipk

    Thread Starter Templeflower

    (@templeflower)

    Ok, I tried copying that, still nothing. The source code is generating this:

    <title> &raquo; Page not found</title>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    
    "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    
    <title>404 Not Found</title>

    Try:
    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter Templeflower

    (@templeflower)

    Ok, I think the problem may be more systemic then the header.

    When I changed to twenty ten, almost nothing shows up on the main wordpress page.

    Perhaps the issue lies with the fact that I have wordpress installed in a subdirectory (Not as the home page), and it’s just not finding the main page properly?

    Thread Starter Templeflower

    (@templeflower)

    ok, here we go! I changed the “site address” to be the same as the wordpress url. This has fixed the header name issue. Now I have to figure out how to point the “home” links to the static homepage.

    Thanks so much for your help! It was greatly appreciated!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘my main page title is 404 not found’ is closed to new replies.