Support

Admin Tools

#9831 Moved Site URL Redirection

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Sunday, 24 April 2011 15:01 CDT

taftr
I recently updated an existing flat HTML based site to Joomla. I have about 30 redirect 301 lines in my existing .httaccess file. The documentation is more geared to making easy URLs for existing pages on the joomla site. What I would like to do is something like /events.html -> http://www.mydomain.com/visitor-info/events

so do I put /events.html in the existing field, even though it doesn't exists and put http://www.mydomain.com/visitor-info/events in the New URL field even though its really an existing link. Also is this redirection being written to the .htaccess file, and if so does that happen when i publish it or do I have to first use the .htaccess maker.

Would it be better then to just paste my list into the custom rules field since its a static list?

Thanks for helping a admin tools noob

nicholas
Akeeba Staff
Manager
OK, here's how to do that:
Existing URL: http://www.mydomain.com/visitor-info/events
New URL: events.html

Useful notes:
- The existing URL is the one that exists without a redirection (hence existing)
- The new URL is the one that will exist once you set up the redirection (hence new)
- The new URL must not have a leading slash
- Redirections are not written to the .htaccess file; they are handled by a Joomla! plugin called "System - Admin Tools"
- If you have redirections in your .htaccess file, do note that they will override the URL Redirections you're setting up in Admin Tools, because the .htaccess redirections are parsed long before Joomla! has the chance to even start running.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

taftr
Thanks for getting back so quick...

What i am looking for is setting up redirection of links that no longer exist. the event.html page was part of the OLD site that was removed...

You did answer the question by saying that the joomla site handles the redirection, meaning that what I was thinking will not work and that section is only for content that you want a "nicer" looking link. I'll just paste the redirections into the append code to .htaccess window.

Thanks again,

nicholas
Akeeba Staff
Manager
No, you understood quite the opposite of what I am saying. Here goes an example:

My old site had a page in /components/foobar/item/2.html. My new site has the same page in /foobars/nicer/looking.html. In order to maintain search engine rankings I want the OLD URL to redirect to the NEW URL. How to do it? URL Redirections, not .htaccess. The exact setup is:
Existing URL: /foobars/nicer/looking.html
New URL: components/foobar/item/2.html

Why is that? Because components/foobar/item/2.html no longer exists on the site. For the context of this new site, that's a new URL. So I want to redirect this URL (which so happened to be a part of my old site) to the one that readily exists, i.e. /foobars/nicer/looking.html

In fact, I have 350 such redirections set up on AkeebaBackup.com which get a few hundreds hits per day. This is exactly why I created that feature: easily redirect URLs which were valid on the old site to the new site's URLs.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

timbreese
I have a similar problem- I can't seem to get the URL Redirection to work- I put several of the old URLs to new ones.

For instance Google has my old site listed as

http://harrychapinmusic.com/chapin_site2/home/chapinhp_frm.html

and I have redirected it to http://harrychapinmusic.com

But it does not seem to have taken effect.

Best, Tim

nicholas
Akeeba Staff
Manager
Google may take 2 weeks to 3 months to get notified about the moved URLs. I strongly suggest following this procedure:
1. Create a sitemap of your site, e.g. using Xmap
2. Use Google Webmaster Tools to notify Google that you have moved your site from one location to the other
3. Submit the sitemap of the new site to Google, using Webmaster Tools, so that Google will schedule a new pass from your site as soon as possible

Using this method you should see Google's results changing in 1-2 weeks. At least, this is exactly what I did and the results I got when I moved this site from joomlapack.net to akeebabackup.com last year.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

taftr
But it does not seem to have taken effect.


By take effect, did you mean "updateing google" or did you mean when you typed the old address you got a page not found... Because thats what I got, "Page not Found" I am useing the .htaccess update from admin tools, and I made sure the redirect was published.

The only thing I could get to work was placing a redirect 301 old_link New_link into the append to .htaccess. That worked like a champ and now a few weeks later google has updated as well. I also use a special site map template, in conjunction with Google webtools and analititcs. But you have to make sute you set htaccess to not block "?template=" calls to your site to use something like that

I'm sure I can get the webadmin redirects to work, but I havn't had time to sit down and figure out what I'm doing wrong

Rich

nicholas
Akeeba Staff
Manager
Rich,

the redirections are not handled in .htaccess (it's a very slow method if you have over 20-30 redirections) they are handled by the "System - Admin Tools" plugin. First you have to make sure that the plugin is published and its ordering is lower than the ordering of your system router / SEF plugin. If this is the case, you might have put the redirection definitions backwards. Please read the documentation. Existing URL is the URL in your new site, new URL is the URL of the old site. Please read this documentation page for more clear and detailed instructions.

Regarding blocking the tmpl parameter, please note that the latest release of Admin Tools allows you to specify a whitelist of template options which will not get blocked (the comma-separated list in the "List of allowed tmpl keywords" option). If you have a site template, however, to accomplish that then yes, you need to disable that option.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!