Akeeba Backup for WordPress

#29464 Backup/restore

Posted in ‘Akeeba Backup for WordPress’
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

WordPress version
PHP version
Akeeba Backup version

Latest post by on Friday, 04 May 2018 17:17 CDT


I've just added a web application firewall to a website and it sets up a number of rules in .htaccess. At least once a month, I have to take a copy of the website on to my development server where it has a different URL (xxx.local instead of

A number of the rules in the .htaccess file forbid access unless coming from the original URL.

Would it be possible to put something into Angie at the substitution phase to replace stuff in the .htaccess file - specifically strings which look loke -> xxx.local
xxx\.co\.uk -> xxx\.local
xxx\ -> xxx\.local


Akeeba Staff
ANGIE already does that in the Replace Data step :) By default it only includes replacement pairs in the form ==>
whereas you need
old-domain\.com ==> new-domain\.com
Note the backslash before the dot. That's called an "escaped dot". This is necessary because .htaccess RedirectRule lines operate on regular expressions, not simple strings, where the straight up dot has a different meaning.

You just need to add the replacement pair with the escaped dot in the list of replacements and ANGIE will do what you asked.

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!

Ah - OK, I'll give it a try. Thanks

System Task
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!