Page 1 of 1

Getting "The requested URL was not found on this server

Posted: Sat Aug 25, 2012 2:29 am
by melvint9
None of my page links work, I continue to get the following error: The requested URL was not found on this server...

for example. when i click "EPE Home" link which show as "http://poseidon/melvin/epe3/cms/prs-home/prs-tech-help" I get the error... BUT when I edit the url directly and include "index.php?page=" to where the url is now listed as "http://poseidon/melvin/epe3/cms/index.p ... -tech-help" then my page display...

I'm guessing it has to be an configuration problem dealing with the "root_path", but I'm not sure...

Re: Getting "The requested URL was not found on this server

Posted: Sat Aug 25, 2012 7:16 am
by staartmees
please post your config.php but don't forget to hide your database username and password

Re: Getting "The requested URL was not found on this server

Posted: Sat Aug 25, 2012 5:25 pm
by Dr.CSS
Sounds like you had pretty URLs set in the config and then somehow they went wrong. Did you move the site or ? ...

Re: Getting "The requested URL was not found on this server

Posted: Sun Aug 26, 2012 11:32 am
by Rolf
Dr.CSS wrote:Sounds like you had pretty URLs set in the config and then somehow they went wrong. Did you move the site or ? ...
Check steps in http://docs.cmsmadesimple.org/configuration/pretty-url

Re: Getting "The requested URL was not found on this server

Posted: Sun Aug 26, 2012 6:51 pm
by melvint9
here are my config.php and .htaccess files bellow:

=======================================

config.php

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = 'epe_site';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://poseidon/melvin/epe3/cms';
$config['timezone'] = 'US/Eastern';
$config['default_encoding'] = 'utf-8';
# $config['debug'] = true;

# URL Settings
$config['url_rewriting'] = 'mod_rewrite';

?>

=======================================
.htaccess file:

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off

#Options +FollowSymLinks

# To prevent E_STRICT problems with PHP 5.3+ you can uncomment the following lines
# Note: These settings should only be enabled for production sites!
#php_flag display_startup_errors 0
#php_flag display_errors 0
#php_flag html_errors 0
#php_value docref_root 0
#php_value docref_ext 0

<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /epe3/melvin/cms

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>

<IfModule mod_header.c>
# Disable ETags
Header unset ETag
FileEtag None
</IfModule>

<IfModule mod_deflate.c>
# Compress css, plaintext, xml, gif, and images in transport.
AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png
</IfModule>

<IfModule mod_expires.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
# Set expires tags on various files... so that the browser wont attempt to reload them.
ExpiresActive On
ExpiresDefault "access plus 1 year"
<IfModule mod_header.c>
# Setting cache control to public allowes proxy servers to cache the items too.
Header set Cache-Control "public"
</IfModule>
</FilesMatch>
</IfModule>

======================================
You won't be able to view url below because it's on a secured site not accessible outside our firewall:

url: http://poseidon/melvin/epe3/cms/index.php

Re: Getting "The requested URL was not found on this server

Posted: Sun Aug 26, 2012 9:58 pm
by Jos
you might want to check the RewriteBase setting in your htaccess, it looks a bit mixed up to me

Re: Getting "The requested URL was not found on this server

Posted: Mon Aug 27, 2012 12:40 am
by Jo Morg
Jos wrote:you might want to check the RewriteBase setting in your htaccess, it looks a bit mixed up to me
Besides that, it seems it is being overridden by some other htaccess or setting from Drupal 7 which seems to be setup on the root of the domain. If you look at the source of the error page, it seems to be issued by Drupal, not by the server. Either Drupal is trapping the error or the htaccess on the root is, overriding all other settings...

Re: Getting "The requested URL was not found on this server

Posted: Mon Aug 27, 2012 5:41 pm
by melvint9
Drupal isn't loaded anywhere on server...I would have to check to review the .htaccess file on root... I'm using the htaccess file installed with CMS Made Simple... does anyone have an example of what my htaccess file should resemble...

Jo Morg wrote:
Besides that, it seems it is being overridden by some other htaccess or setting from Drupal 7 which seems to be setup on the root of the domain....

Jo, what do you see to determine Drupal 7 setting?

Re: Getting "The requested URL was not found on this server

Posted: Mon Aug 27, 2012 5:59 pm
by Jo Morg
melvint9 wrote:Drupal isn't loaded anywhere on server...I would have to check to review the .htaccess file on root... I'm using the htaccess file installed with CMS Made Simple... does anyone have an example of what my htaccess file should resemble...

Jo Morg wrote:
Besides that, it seems it is being overridden by some other htaccess or setting from Drupal 7 which seems to be setup on the root of the domain....

Jo, what do you see to determine Drupal 7 setting?
If the link you posted is the real one, I just took a look at the source, and got this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:og="http://ogp.me/ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:sioc="http://rdfs.org/sioc/ns#"
  xmlns:sioct="http://rdfs.org/sioc/types#"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

<head profile="http://www.w3.org/1999/xhtml/vocab">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="http://www.poseidon.com/sites/all/themes/poseidon/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />
  <title>Page not found | Poseidon</title>
  <style type="text/css" media="all">@import url("http://www.poseidon.com/profiles/odddrupal/modules/custom/fanta/fanta.css?m7rj0x");

.........................................

You can count how many times the Drupal word appears. However if you don't have it installed it may be that your host has some custom redirecting on errors of their own.

I also think your not proving enough data... (actually I may be wrong about this... sorry I didn't see the Secure url warning you gave. My apologies )
How To Submit a Question So You'll Actually Get Help

--- edited ---