Home Forum
2010-09-07
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?

redirect question
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: redirect question
#631
redirect question 10 Months, 3 Weeks ago  
Hello,

I have changed the joomla installation folder from /en to /a. Now all the pages already indexed by google point www.abc.com/en/whatever.html and I get a 404 error. How can I redirect each www.abc.com/en/whatever.html request to its new location www.abc.com/a/en/whatever.html seamlessly (for the visitor)? Would your plugin do that?

I thank you in advance.

(urls given above, are not the real urls, and used just for example)
lordprodigy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#635
Re:redirect question 10 Months, 3 Weeks ago  
Using ReDJ you can configure redirect items as follow:

Code:

From URL: ^/en/whatever.html$
To URL: http://{siteurl}/a/en/whatever.html



Note the initial hypen in "From URL". It means "start with" and is needed to avoid loop, because "/en/whatever.html" matchs also with destination URL.

Let me know,
Luigi
admin
Administrator
Posts: 575
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#641
Re:redirect question 10 Months, 3 Weeks ago  
Hello Luigi,

Thank you very much for your reply!

Excuse my ignorance but:
- where do put this code?
- can I batch redirect like this?
From URL: ^/en/$
To URL: http://{siteurl}/a/en/

Thanks in advance!
lordprodigy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#643
Re:redirect question 10 Months, 3 Weeks ago  
ReDJ have a plugin that must be enabled to do the work, and a component that lets you manage redirections. You should create an item like my example for each Google's error page. Your proposal:

Code:

From URL: ^/en/$
To URL: http://{siteurl}/a/en/



Will not work because with current ReDJ release, source URL is dynamic (you can use regular expressions), but destination URL is static, so all matching URLs will go to the same destination.

I plan to introduce dynamic destinations in the next ReDJ release.

Regards,
Luigi
admin
Administrator
Posts: 575
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/10/21 00:41 By admin.
The administrator has disabled public write access.
 
#646
Re:redirect question 10 Months, 3 Weeks ago  
Thank you Luigi!

Dynamic urls would be awesome. I will wait for your next release. I cant create an error page for each item, as it is the whole site, with many pages. I will wait for google to clear its cache and reindex.

Great support. Keep up the good work.
lordprodigy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#648
Re:redirect question 10 Months, 2 Weeks ago  
Ok,
but meanwhile you can solve the problem using Apache mod_rewrite.

Something like this should work:

RewriteRule ^/en/(.*) /a/en/$1 [R]

More info here:

httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Regards,
Luigi
admin
Administrator
Posts: 575
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#649
Re:redirect question 10 Months, 2 Weeks ago  
Hi Luigi,

This is great. Exactly what I was looking for.

Where do I paste this code? In the .htaccess file or the root directory?

Thanks a lot for the link.
lordprodigy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#650
Re:redirect question 10 Months, 2 Weeks ago  
Yes.
If you look at your Joomla home, there a htaccess.txt file, that can be renamed .htaccess (maybe you have done this yet).

You can add this rule as last one. Naturally, I'm assuming that your web server is Apache.

Regards,
Luigi
admin
Administrator
Posts: 575
graph
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
 41 visitatori online
Pubblicità