Home Forum
2010-09-10
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Generale
Giochi a premi
Open Source
Ricezione
Welcome, Guest
Please Login or Register.    Lost Password?

*.php?ID= won't redirect/when to change .htaccess
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: *.php?ID= won't redirect/when to change .htaccess
#987
*.php?ID= won't redirect/when to change .htaccess 7 Months, 1 Week ago  
Dear Luigi,

Thanks for the great component. All off the desired redirections work perfectly, except two, they look like this: /ProdDetail.php?ID=37 (both have different ID numbers)
I want to redirect them to /artikelen.html. What's wrong?

And I don't understand what you mean by: "To redirect all the URLs included those one who would not be managed by Joomla! simply activate .htaccess standard Joomla! file, and add the following row to its:
ErrorDocument 404 / "

Can you explain in other words please? Like in what occassions is it necessary to change .htaccess and in what occassions not?
annita
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#988
Re:*.php?ID= won't redirect/when to change .htaccess 7 Months, 1 Week ago  
Ok Annita,
I try to explain...

For your redirect, you should escape the question mark otherwise it will be taken in regular expression sense:

From URL: /ProdDetail.php\?ID=37

About the .htaccess file, that's what I mean. In some cases with a wrong URL, is Apache that return the error page (404 - Not Found). If you need to redirect these URLs using ReDJ, you can't do it. Just because ReDJ runs inside Joomla, but for these URLs, Apache doesn't pass the control to Joomla - it return the error by itself.

So, for these cases you can tell to Apache you want to manage the errors by yourself, specifying your custom error page. This is what ErrorDocument is for:

ErrorDocument 404 /

You are telling to Apache "everytime there's a wrong call with error 404 - Not Found, please pass the control to /", where there's is Joomla (and ReDJ) that can do the redirect.

I hope this was clear enough.

Regards,
Luigi
admin
Administrator
Posts: 580
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#989
Re:*.php?ID= won't redirect/when to change .htaccess 7 Months, 1 Week ago  
Dear Luigi,

Thanks for your quick reply. I'm kind of new to all of this, so please tell me how can I escape the question mark?

Regards,
Annita
annita
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#990
Re:*.php?ID= won't redirect/when to change .htaccess 7 Months, 1 Week ago  
Hi Annita,
no problem. It can be done just as indicated:

Code:

From URL: /ProdDetail.php\?ID=37


Take a look at the "backslash" just before the question mark.

URL not escaped: /ProdDetail.php?ID=37
URL escaped: /ProdDetail.php\?ID=37

Let me know if need more help.

Luigi
admin
Administrator
Posts: 580
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#991
Re:*.php?ID= won't redirect/when to change .htaccess 7 Months, 1 Week ago  
thank you, it works!
annita
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: admin
Cerca con Google
Chi è online
 63 visitatori online
Pubblicità