Answer the question
In order to leave comments, you need to log in
How to bulk change the url on the site?
Hello. The problem is this. There is a site. One for WP, one for Joomla. There was a need to replace urls from the type site.com to urls like site.com/ru
There are hundreds of pages on the site. Do not do it by hand. Tell me how to do it easier?
Answer the question
In order to leave comments, you need to log in
in files:
grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'
UPDATE your_table
SET your_field = REPLACE(your_field, 'apples', 'oranges')
WHERE your_field LIKE '%apples%'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question