Home Forum
2024-05-14
Benvenuto, Ospite
Nome Utente Password: Ricordami

Not Working- Get a 404 Error
(1 Online) (1) Ospite
  • Pagina:
  • 1
  • 2

ARGOMENTO: Not Working- Get a 404 Error

Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #281

  • TEades
  • Offline
  • Fresh Boarder
  • Messaggi: 6
I am trying to fix it so that when a user types "www.morgancc.edu/schneider" in their browser, it goes to www.morgancc.edu/index.php/faculty-sites/faculty-todd-schneider/homepage (the actual page). However, when I try this, I get a "Not found" page.

Here is how I have it set up in Joomla:

From URL: ^/schneider$
To URL: www.morgancc.edu/index.php/faculty-sites/faculty-todd-schneider/homepage

Any idea of what might be going on? I think it might be an issue with the .htaccess file. I never modified it because I could not find the instructions on how to do so.

Thank you!
Ultima modifica: 14 Anni, 9 Mesi fa Da TEades.
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #282

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
From URL is right. Change To URL in:

To URL: http://{siteurl}/index.php/faculty-sites/faculty-todd-schneider/homepage

Macro {siteurl} helps you to mantain portability.

Last thing, be sure to modify your .htaccess as indicated in the "edit item" page (e.g. add "ErrorDocument 404 /" at the end of file).

Let me know,
Luigi
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #283

  • TEades
  • Offline
  • Fresh Boarder
  • Messaggi: 6
Still not working. Does mod_rewrite have to be enabled in Joomla! (I have it enabled in Apache.) I tried enabling it in Joomla, but then I was getting 404 errors with other components.
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #284

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
At this moment when I call www.morgancc.edu/schneider is Apache that send me the response (Apache/2.2.6 (Win32) PHP/5.2.8), so you must check your ErrorDocument settings in .htaccess file.

If you need help, send me .htaccess file.

Regards,
Luigi
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #290

  • TEades
  • Offline
  • Fresh Boarder
  • Messaggi: 6
Hi Luigi,

Yes, I'm afraid I'm fairly new to modifying an htaccess file or modifying server settings! Here are the contents of HTACCESS:

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

 
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
 
#
# mod_rewrite in use

RewriteEngine On
 
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

RewriteBase /
 
 
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

ErrorDocument 404 /index.php


Thank you!
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #291

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Try to change last line from:

ErrorDocument 404 /index.php

To:

ErrorDocument 404 /

And let me know. You should get a Joomla error page for any incorrect or non existing url under your Joomla domain.

Luigi
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #292

  • TEades
  • Offline
  • Fresh Boarder
  • Messaggi: 6
I did that but am still getting the Apache error page.
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #293

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
In this case it means that Apache doesn't follow your directive. This is not a ReDJ or Joomla problem. This is Apache configuration issue and you should check with your service provider. If you want, I can take a look at yuor settings.

Regards,
Luigi
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #294

  • TEades
  • Offline
  • Fresh Boarder
  • Messaggi: 6
Hi Luigi,

I figured it was getting down to this. Unfortunately, I am not a server administrator and don't know every in and out of Apache, but I tried uncommenting the "LoadModule rewrite_module modules/mod_rewrite.so" line in httpd.conf, but had no luck.

Terri
L'Argomento è stato bloccato.

Re:Not Working- Get a 404 Error 14 Anni, 9 Mesi fa #295

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok,
mod_rewrite is needed to use SEO url, and its directives are included in .htaccess file. But ErrorDocument is a core feature of Apache.

So first you should try to enable mod_rewrite because it's useful (and I can help you if needed). If this is not possible you can replace .htaccess file with a custom one where you put only the ErrorDocument option.

Let me know,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.54 secondi
Cerca con Google
News
Chi è online
 78 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.