Rather than building a separate system for handling old URLs, including adding a whole extra script to process them, just use GlobalRedirect to handle the old URLs.

Comments

damienmckenna’s picture

Version: » 6.x-1.0
Status: Active » Fixed

Code committed.

damienmckenna’s picture

Released in v1.1.

damienmckenna’s picture

Status: Fixed » Closed (fixed)
arpeggio’s picture

I have these 3 URLs:

http://kapitbisig.com/content/biag-ni-lam-ang-ifugao-epic

http://kapitbisig.com/node/789

pointing to only 1 content and currrently I'm using .htaccess to redirect these 3 URLs (script below):

RewriteRule ^content/biag\-ni\-lam\-ang\-ifugao\-epic$ http://kapitbisig.com/index/789/bilingual-tagalog-english-version-biag-n... [R=301,L]
RewriteRule ^node/789$ http://kapitbisig.com/index/789/bilingual-tagalog-english-version-biag-n... [R=301,L]

I have 3 questions:
1. I'm thinking which is more effective redirecting URLs (if I have thousands of URLs to redirect): .htaccess or Global redirect?
2. And I'm wondering, can the Global redirect handle 3 URLs redirect to only one content?
3. I have some URLs containing special UTF-8 characters (like: ò and â in http://kapitbisig.com/content/punò-nang-salitâ) and I would like to redirect it to other URL, but I can't make it work in .htaccess:

RewriteRule ^content/punò\-nang\-salitâ$ http://kapitbisig.com/index/942/florante-laura-ni-francisco-baltazar-com... [R=301,L]
RewriteRule ^node/942$ http://kapitbisig.com/index/942/florante-laura-ni-francisco-baltazar-com... [R=301,L]

Can Global redirect handle this?

Thank you in advance.

damienmckenna’s picture

Please open a new issue rather than add questions to a closed ticket. I also think your questions would be better directed to the main GlobalRedirect project issue queue rather than this project.

arpeggio’s picture

I see. Thank you for redirecting me to the right path :)