Support

Admin Tools

#15357 Redirection of mass structure trought .htaccess

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 on Sunday, 07 April 2013 18:00 CDT

user7820

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 3.0.3
PHP version: 5.3.3
MySQL version: 5.1.67
Host: www.diccionariomedico.net
Admin Tools version: 2.5.2

Description of my issue:

 

Hello,

I would like to do a mass redirection URLs trought .htaccess with AdminTools because the structure of many URls are changed from:

http://www.diccionariomedico.net/diccionario-terminos/Diccionario-terminos-2/C/Calopsia-2488/ (Old URLs)

To:

http://www.diccionariomedico.net/diccionario-terminos/2488-calopsia (New URLs)

 

I tried to to this with following Rule:

Options FollowSymLinks
RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-]*)/[a-zA-Z0-9-]*/[a-zA-Z]/([a-zA-Z0-9-]*)-([0-9]*)/$ http://www.diccionariomedico.net/$1/$3-$2 [R=301,NC,L]

But it not happens anything.

I'm very interested to solve this incident because I'm loosing all saved URLs from search-engines.

Many thanks for your support.

Gerard Turmo

nicholas
Akeeba Staff
Manager

You only need a RewriteRule line. Without having tested it, I believe it should read:

RewriteRule ^diccionario-terminos/([^/]*)/([^/]*)/([^/]*)/?$ diccionario-terminos/$3 [R=301,L]

This rule should redirect a URL whose path starts with diccionario-terminos and is followed by exactly three subdirectories.

Again, I have NOT tested it. It's off the top of my head.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!