Home Forum
2024-12-22
Benvenuto, Ospite
Nome Utente Password: Ricordami

404 error redirect not working
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: 404 error redirect not working

404 error redirect not working 15 Anni, 2 Mesi fa #586

A good evening,

I have read through the different threads but still the 404redirect is not working.

1. I installed plugin + component = ok
2. I created a new 404 page, pageID 3 and put german language in it with language de-DE.
3. I activated the plugin (System - ReDJ) and
3a. did not change any setting here
3b. changed the custome error 404 page (yes) and pageID = 3

3a. Returns the normal error page by IE
3b. Returns the normal error page by IE

4. Then I changed the .htaccess with the extra line
ErrorDocument 404 /joomla/

and still the ReDJ page did not display.

I include the .htaccess, as it is the standard one :

## 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 /

ErrorDocument 404 /joomla/

########## 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


Maybe I overlooked something else ? Maybe the answer is on your website of what to do, but I do not speak Italian , sorry for that.

Thanks for the help,

Peter
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #590

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi and sorry for delay (forum is moderated).

Anyway, if you need to show a custom error page, check the plugin settings. You should set "Custom error page" to yes.

If this still not work, please, send me a screenshot of plugin settings, and the address of your site to make some test (you can send me a mail if you want).

Instead, if you need to do custom redirect, you should configure items in ReDJ component. Beware, custom error page and custom redirect are two different functions.

Regards,
Luigi
Ultima modifica: 15 Anni, 2 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #591

  • BP72
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Having similar issue..
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #592

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok,
same suggestion.

Send me screenshot of your plugin settings.

Regards,
Luigi
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #594

  • BP72
  • Offline
  • Fresh Boarder
  • Messaggi: 5
sent via contact form..

copy of htaccess
screen shot of urls to redirect
screen shot of plugin settings.

thank you..
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #596

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok.
First, you should correct your .htaccess file. You have:

ErrorDocument 404 /joomla/


But from your URLs, it seems that Joomla is installed on the root folder. If so, correct entry should be:

ErrorDocument 404 /


Your configuration works is your home page is something like:

http://www.yourdomain.com/joomla/


Then, you have enabled custom error page with ID = 2, that is my default English page. To see if it works, call a wrong URL. You should see an error page that looks like the Joomla one, but with the administrator email address.

Last, all your items have the full URL in "FromURL". This is wrong because ReDJ works with REQUEST_URI. So, please, remove all:

http://www.domain.com


And all should work. Better to use a macro {siteurl} in "ToURL", that is more general.

Let me know,
Luigi
Ultima modifica: 15 Anni, 2 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #598

  • BP72
  • Offline
  • Fresh Boarder
  • Messaggi: 5
First of all thank you for taking the time out on this.

This is what i have done...

- Corrected the htaccess entry
- Corrected all the url entries on the redirects
- Used your form to email another screen shot of the redirects.


After all the corrections the redirects dont work.
L'Argomento è stato bloccato.

Re:404 error redirect not working 15 Anni, 2 Mesi fa #599

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
There's still a problem with FromURL. You MUST drop protocol and domain (e.g. change "http://{siteurl}/none"; to "/none").

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

Re:404 error redirect not working 15 Anni, 2 Mesi fa #600

  • BP72
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Thank you thank you thank you..


works like a charm now..

I just misunderstood.


thank you again..
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.70 secondi
Cerca con Google
News
Chi è online
 122 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.