URL from WordPress Import are not the same
- This topic has 6 replies, 4 voices, and was last updated 12 months ago by .
- AuthorPosts
- February 17, 2020 at 7:57 pm#1753
vidian
Hi,
When importing posts from WordPress using the WP Importer the URLs are not exact, they change and match the Title of the post. Is there a way to choose the preferred URL from the import?
Thanks
February 18, 2020 at 3:45 pm#1776Bob
SupportHi,
Publii generates a user and SEO friendly URLs in the way you probably have noticed. There is no way to import your own slugs into Publii.--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!February 18, 2020 at 3:51 pm#1777vidian
Ok, thank you Bob. Do you think this could be a future feature of the importer?
Importing hundreds of URLs that are already optimized for search engines (without “the”, “and”, etc) and already getting traffic, it’s a time consuming task to edit one by one. Is there any way to change them in bulk once imported?
Thanks
February 18, 2020 at 3:53 pm#1778Bob
SupportI’m afraid we have no plan for that.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!February 18, 2020 at 4:29 pm#1780itips3727
Ok, thank you Bob. Do you think this could be a future feature of the importer?
Importing hundreds of URLs that are already optimized for search engines (without “the”, “and”, etc) and already getting traffic, it’s a time consuming task to edit one by one. Is there any way to change them in bulk once imported?
Thanks
Perhaps once imported into Publii, you could do a search and replace in the db.sqlite file (edit the slugs, etc). Though, of course, make a backup first.
Alternatively, maybe add a 301 redirects listing in your Publii .htaccess file.
February 18, 2020 at 4:56 pm#1781vidian
Thanks itips3727, that could work.
March 2, 2020 at 12:38 pm#1894jakobpersson
You can rebuild the app, it’s built with Electron. The WXR importer code is easy to read. All it needs to do is to read a field from your WXR/XML file. I manually edited the slugs but I had 43 posts, not 400, to edit.
That the slugs don’t allow slashes is annoying since it means you need to set up redirection if you’ve used a path pattern such as/topic/year/title – which is common. I solved it by replacing slashes with underscores, used that as a slug and then set up a rewrite rule to redirect traffic to the old paths.
- AuthorPosts
- You must be logged in to reply to this topic.