SED for thousand of 301 redirections on htaccess?
-1
votes
2
answers
101
views
I got a headache with URLS after change them on one of my websites.
The URLs were very long and I decided to change them despite the later change via .htacces...
I'm making the change one by one (I have more than 1500 URLs...)
I have this:
Redirect 301 /noticies/festes-noticies/diania-roda-les-aixames-la-nit-de-nadal/
And this becomes:
Redirect 301 /noticies/festes-noticies/diania-roda-les-aixames-la-nit-de-nadal/ /diania-roda-les-aixames-la-nit-de-nadal/
The last
/-----/
, were put at the finish of the line, with one blank space.
There are a method with sed or another command to do this easily?
Asked by Jordi Webmaster
(1 rep)
Nov 15, 2020, 07:07 AM
Last activity: Nov 15, 2020, 03:08 PM
Last activity: Nov 15, 2020, 03:08 PM