Jump to content

All pages other than home return 404 Error. Tried all usual measures.


Pablos
 Share

Recommended Posts

Hi,

I've just installed a site in a test sub-directory on hostpapa and I'm getting 404s on all pages except the homepage. The .htaccess file is being read and mod_rewrite is on. I've been through the .htaccess and ultimately commented everything to the point where it generates a 505 error, but up to that point, I still get the 404.

It might be worth mentioning that I've got short_open_tag set to off, as I was getting a "Parse Error: syntax error, unexpected 'version' (T_STRING)" error due to the line "<?xml version='1.2' encoding='UTF-8' ?>" at the top of my head.inc file.

I developed the site on an Unlimited Web Hosting server and everything ran fine there. I transferred the site by exporting a Site Profile.

Thanks for any ideas,

Paul

Link to comment
Share on other sites

Hello,

Could you give examples of URLs (the part after the domain name, that you see at the bottom of your browser when you hover a link)?

You don't have any redirection (module) enabled, do you?

Do you have $config->debug = true; in config.php, in case it helps?

What are the differences between the two servers?

Link to comment
Share on other sites

check .htaccess principal functioning with a call for phpinfo dump from your (relative) root

RewriteBase /name of subfolder/ ok ?

emedded space in the alias/directory name ?

permission error in .htaccess file ?

relative/absolute links ?

httpd.conf 'AllowOverride All' ?

mod_security in your CPanel ?

  • Like 2
Link to comment
Share on other sites

Hello,

Could you give examples of URLs (the part after the domain name, that you see at the bottom of your browser when you hover a link)?

You don't have any redirection (module) enabled, do you?

Do you have $config->debug = true; in config.php, in case it helps?

What are the differences between the two servers?

Hi Christophe,

Typical url is subdomain.hostpapa.com/subfolder/pwtest/richard/portfolio/

I'm not using any redirection modules.

$config->debug = true, but isn't providing any further info.

The details of the two servers are as follows:

hostpapa - where we have the problem:

Apache Version     2.2.31

PHP Version     5.5.29

MySQL Version     5.5.45-cll

Architecture     x86_64

Operating System     linux

unlimited web hosting - working fine

PHP 5.6

Apache Version: Apache/2.2.31 (Unix)

MySQL Version: mysql Ver 14.14 Distrib 5.5.45

Architecture: Linux

Operating System: CentOS

All the best,

Paul

Link to comment
Share on other sites

check .htaccess principal functioning with a call for phpinfo dump from your (relative) root

RewriteBase /name of subfolder/ ok ?

emedded space in the alias/directory name ?

permission error in .htaccess file ?

relative/absolute links ?

httpd.conf 'AllowOverride All' ?

mod_security in your CPanel ?

 Hi pwired,

You got it - The address of the site is http://subdomain.hostpapa.com/subfolder/pwtest/

I tried setting the Rewrite base to "/" and "/pwtest/" when it actually needed "/subfolder/pwtest/"

Thanks to everyone for the suggestions. Very much appreciated!

All the best,

Paul

Link to comment
Share on other sites

Hi again,

Perhaps you'll want to replace the 2 URLs with something like http://subdomain.hostpapa.com/(sub)folder/pwtest/richard/portfolio/, for security reasons. Google indexes very quickly these Support Forums (topic) posts.

And to use an .htpasswd file if you don't want google to start indexing the website as it is.

Or perhaps you are going to "migrate" the website and make it live quite soon.

Link to comment
Share on other sites

Hi again,

Perhaps you'll want to replace the 2 URLs with something like http://subdomain.hostpapa.com/(sub)folder/pwtest/richard/portfolio/, for security reasons. Google indexes very quickly these Support Forums (topic) posts.

And to use an .htpasswd file if you don't want google to start indexing the website as it is.

Or perhaps you are going to "migrate" the website and make it live quite soon.

Thanks Christophe.

All the best,

Paul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...