Getting "The requested URL was not found on this server

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
melvint9
Forum Members
Forum Members
Posts: 12
Joined: Thu Jun 28, 2012 3:02 am

Getting "The requested URL was not found on this server

Post 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...
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

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

Post by staartmees »

please post your config.php but don't forget to hide your database username and password
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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 ? ...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
melvint9
Forum Members
Forum Members
Posts: 12
Joined: Thu Jun 28, 2012 3:02 am

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

Post 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
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

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

Post by Jos »

you might want to check the RewriteBase setting in your htaccess, it looks a bit mixed up to me
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
melvint9
Forum Members
Forum Members
Posts: 12
Joined: Thu Jun 28, 2012 3:02 am

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

Post 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?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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 ---
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “CMSMS Core”