Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting based on _wp_old_slug ? #181

Open
joyously opened this issue Aug 14, 2021 · 1 comment
Open

Redirecting based on _wp_old_slug ? #181

joyously opened this issue Aug 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@joyously
Copy link
Contributor

Is there any code that processes the meta key _wp_old_slug?
Perhaps it could be a simple HTML redirect (like refresh) or output for .htaccess.

@leonstafford
Copy link
Contributor

Hi @joyously,

There's no redirection handling within this plugin. https://github.com/leonstafford/wp2static has support for redirect handling, but that will depend on where you're deploying to, as each static host may handle differently.

You mentioned .htaccess, so I assume that you want to host your static site on another Apache server?

I may get to redirect support in the future, but for now, I'd propose manually creating the redirect rules for the URLs you are aware of. You may be able to grab all the _wp_old_slug entries from the WordPress database to help if there's a lot.

If you want a smoother experience for redirects, I can recommend Strattic, the company I now work for, who have a complete end to end WordPress to static site hosting/publishing platform with redirect support. If you're interested in that, there's a free trial and our team's really nice at onboarding people.

@leonstafford leonstafford changed the title handling _wp_old_slug ? Redirecting based on _wp_old_slug ? Aug 15, 2021
@leonstafford leonstafford added the enhancement New feature or request label Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants