Hello, I have a Wordpress site deployed on Netlify via W2P static plugin and I am trying to figure out how to set up some 301 redirections.
I found in your documentation that I need to create a redirect file and upload it to the root folder on Netlify, but I cant figure out how to do it as my site is being deployed automatically with the plugin.
The current solution will depend on your deployment method:
for Netlify, using our Add-on, we provide a field for entering your redirects
for Netlify manual, you’ll need to download and extract the ZIP, add in a Netlify _redirects file, zip it up again and deploy
The quoted text above is from the WP2Static official documentation. There is a field in the WP2Static settings page in the WordPress dashboard where you can enter your redirects that’s if you are using the automatic deployment method.
Hello @janik, there is a similar post on this forum about removing index.html extension from your URL and @fool’s answer in the link below summarizes how redirects work with regards to file extensions.
However you can enable pretty URL’s even thought Netlify will still serve both, with or without the feature enabled.
Checkout how to enable pretty URL’s in the link below. Redirect options | Netlify Docs.