GD Permalink Generation Issue
This topic contains 9 replies, has 3 voices, and was last updated by Alex Rollin 7 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: permalinks permalink
-
AuthorPosts
-
July 9, 2018 at 7:33 pm #437622
Hello,
I’m experiencing an issue in my permalink generation. Below are a few examples of my generated permalinks.
/in/pennsylvania/pittsburgh/650-Washington-Road-Suite-15228/
/in/pennsylvania/philadelphia/1500-Jfk-Blvd-19102/
/in/pennsylvania/philadelphia/4240-Market-Street-19104/The first link 404s, while the last 2 links work fine. What I’m experiencing is some of the links generated use 3 phrases (4240, Market, and Street), while others use 4 phrases (650 Washington Road and Suite). The issue here is that I cannot map all 1200 of our links because the naming convention isn’t consistent. I might not be understanding it properly.
Thanks.
July 9, 2018 at 8:07 pm #437625Are those Detail, Listings or Location pages?
Detail pages use a slug based on the name of the listing.
Listings pages use a slug based on the name of the category.
Location pages use a slug based on the city name.It looks like you are using street addresses as “cities”.
If you post your URL and WP admin details in a private reply, then we will be able to understand better what you are doing and asking.
Thanks
July 9, 2018 at 8:35 pm #437630This reply has been marked as private.July 9, 2018 at 9:08 pm #437633You have 404s because your listings have no category assigned; every listing needs at least one category.
All your listing URLs seem to be manually created, instead of being auto generated from the listing name. So the composition of your URLs is not done by GD.
July 10, 2018 at 1:56 pm #437771Hi Guust,
Thanks for the feedback. So I’m thinking if this is the case (A previous employee made the URL’s before I joined this team), then the ideal solution seems to be recreating the specific URLs using only the first 3 phrases + Zipcode.
/in/pennsylvania/philadelphia/1500-Jfk-Blvd-19102/ being an example.
My only concern is I’m being told that the current URLs are live and will need redirects. What is the best way to bulk-implement redirects?
An example would be /in/pennsylvania/pittsburgh/650-Washington-Road-Suite-15228/ being changed to /in/pennsylvania/pittsburgh/650-Washington-Road-15228/
Thanks!
July 10, 2018 at 4:17 pm #437792URLs will not change if you update the title of a listing.
So you would create a listing with title “number street name ZIP”.
That will auto create the slug as required.
Then you can change the title, and the slug will not change.
You can do all this with a CSV import if you like or manually.There are quite a few redirect plugins you can investigate.
Thanks
July 10, 2018 at 8:45 pm #437814So I just took the exported XML of all of our “places” and replaced the permalink with a format that I prefer. It looks like the only way to import into GD is as a csv, is that correct? Seems strange that I can export as xml but not re-import.
July 11, 2018 at 7:20 am #437859GD exports and imports CSV files.
July 11, 2018 at 4:09 pm #438004So if there’s no way to import an xml, in order to bulk edit my data, do I need to convert the current listings into categories? Seems that categories are the only data type that has the slug as a parameter.
July 11, 2018 at 4:58 pm #438016The importer will set the slugs based on the title.
It does not work with XML, only CSV.
Listings cannot be imported as categories.
Your XML needs to be converted into CSV.
https://www.google.nl/search?q=xml+to+csv+converter
You will need do a sample export to see how the CSV must be formatted. Review the import section to read about the required fields.
https://wpgeodirectory.com/docs/core-export/
Once you import the listings successfully, you can export them again to get the full URL.
Then match that up with your old file titles to create your redirects.
Bulk redirects can be placed into the site .htaccess file.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket