GD Permalink Generation Issue

This topic contains 9 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #437622

    locololo2
    Free User
    Post count: 37

    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.

    #437625

    Guust
    Moderator
    Post count: 29970

    Are 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

    #437630

    locololo2
    Free User
    Post count: 37
    This reply has been marked as private.
    #437633

    Guust
    Moderator
    Post count: 29970

    You 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.

    #437771

    locololo2
    Free User
    Post count: 37

    Hi 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!

    #437792

    Guust
    Moderator
    Post count: 29970

    URLs 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

    #437814

    locololo2
    Free User
    Post count: 37

    So 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.

    #437859

    Alex Rollin
    Moderator
    Post count: 27815

    GD exports and imports CSV files.

    #438004

    locololo2
    Free User
    Post count: 37

    So 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.

    #438016

    Alex Rollin
    Moderator
    Post count: 27815

    The 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.

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket