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

    https://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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Tom Lany

    (@tomthewebmaster)

    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?

    Thread Starter rmjoe123

    (@rmjoe123)

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

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

    Thanks for looking into it.

    Tom Lany

    (@tomthewebmaster)

    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.

    Thread Starter rmjoe123

    (@rmjoe123)

    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

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

    Thread Starter rmjoe123

    (@rmjoe123)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All URL returns to index.php’ is closed to new replies.