WordPress.org

Ready to get started?Download WordPress

Forums

All URL returns to index.php (7 posts)

  1. rmjoe123
    Member
    Posted 7 years ago #

    Installation is successful. But all the pages always return to index.php and not showing the contect from any other page.

    http://blog.saarproduction.com
    Click on About Us tab and it comes back to index.php.

    I have blog subdirectory (blog.saarproduction.com/blog) where I have save all the wordpress directories and files except index.php

    Please advice

  2. Tom Lany
    Member
    Posted 7 years ago #

    Did you notice this in the right column?

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]

    SELECT cat_id, cat_name FROM

    You probably have some kind of database error that you need to fix.

    Also, you say that your index.php isn't in the same directory as everything else. Why is this?

  3. rmjoe123
    Member
    Posted 7 years ago #

    The SQL error is due to new Theme I have applied. Now when I have switched to WP default theme, the problem still exists.

    http://blog.saarproduction.com/?page_id=4
    will return back to
    http://blog.saarproduction.com/index.php
    and will not display the contents of page 4 which is Contact Us.

    Thanks for looking into it.

  4. Tom Lany
    Member
    Posted 7 years ago #

    I am a bit stumped.

    I noticed this in your first entry.

    I have blog subdirectory (blog.saarproduction.com/blog) where I have save all the wordpress directories and files except index.php

    Why isn't index.php in the same directory as everything else? Hope you get it to work out.

  5. rmjoe123
    Member
    Posted 7 years ago #

    I started with adding all the files under root. basically the entire directory structure under root. But when I ran into the problem with the links, I went through the documentation. There was another way of installing WordPress, where keep the index.php in root and move all the files and directory in another directory. Edit index.php to indicate this change. I thought this may fix the problem, but it did not. Though creating a new directory did not harm as well. There is no problem for me to move everything back to root.

    But I know the problem will stay. There is something in setup am I missing ?

    Thanks

  6. charle97
    Member
    Posted 7 years ago #

    you have a forced redirect to your index.php file. look into your server setup or .htaccess file.

  7. rmjoe123
    Member
    Posted 7 years ago #

    Thanks ! Yes as I removed the forced redirect links are working fine now.

    The problem remains is that when I am using a specific template, there is a database error showing up. But I know this is specifically related to template.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.