How would you do this?
Using a plugin like pretty links.. doesn't work.
Has anyone experience with this?
Local mamp install + wp2static
- 3 replies
- Frans Allen @frans2019-11-03 06:40:19.550Z
Hi Ricky, do you want to do URL redirections? Static sites don't support it by default, you need to add custom rules to your webserver or
_redirectsfile if you use Netlify.
Thank you for the fast reply!
Yes for netlify.
I'm new to netlify.
Made a _redirects file in the root. And it works.
Is there a way to automate adding this file to the root of the wp2static ?
Appreciate the support!
- Frans Allen @frans2019-11-03 09:16:06.617Z
Hi Ricky, if you use Netlify as a deployment, you can use the dashboard to add rules, please see image below:
I believe it isn't an efficient way to do all link shorteners on static sites. Only good if you want to redirect the old page to a new page.
For automation maybe you should go with a tool like YOURLS, or read this post from Netlify that might help with what you are looking for.