Skip to content

Classibase uses pretty URLs or permalinks for categories, locations, users and ads.

For ads it additionally uses ad id for making URL unique. For example /ad-title-text-123.html. Where 123 is an id of an ad.

For categories, locations and users permalinks are generated and stored differently. Script tries to find unique permalink using category title.

  • For example "Cars" category permalink will be /cars/.
  • For "London" location permalink will be /london/.
  • For Cars in London permalink will be combination of 2 permalinks like /london/cars/.
  • For user "John" permalink will be /john/. This pages lists all active ads posted by John.

How to edit permalink?

Editing permalink for location, category and user is similar.

Edit permalink for location, category, user on ClassiBase classifieds script.

I will show how to edit permalink for location here:

  1. Go to “Manage” → ”Locations” in admin panel. If it is sublocation then navigate to it by licking on location names.
  2. When you find location that you want to edit click on “Edit” button next to location.
  3. Then on edit page click on edit link (button) next to permalink.
    1. Type permalink that you want to the appeared text field and click on “Ok” button. If permalink available then text input field will convert to regular text.
    2. If not available then unique available name will be generated. In some cases unique id (like l123, c123 or u123) will be added to permalink.
  4. After you are happy with permalink click on “Submit” button at the bottom of page to save changes.

FAQ

How to fix permalink for location?

Why does l105 appear in the following URL “DOMAIN/manchester-l105/cars/” ?

How to remove “l105” from it?

Answer:

Permalinks are stored in separate table (PREFIX_permalink) in order to keep permalinks unique.

It can happen for 2 reasons:

  1. When you use manhcester in other category, location, user name it will check permalink table and if it exists there for other location, category or username then Classibase generates unique permalink by adding unique id (in your case l105) to it.
  2. When you rename existing “manchester” location to other name say to “london”, Classibase stores old permalink in (PREFIX_permalink) with (is_old=1) value in order to redirect it to new location “london”. This is done to redirect traffic from search engines to updated URL.

In both cases first try changing permalink as described in article above.

In case you cannot change “manchester-l105” to “manchester” then it means “manchester” permalink is used by other location, category or username. You can try other unique permalink like “manchester-city” maybe.

Manual fix for advanced users with some SQL and server knowledge.

If you still want to use “manchester” then check your database table (PREFIX_permalink) for slug “manchester” in mysql editor using similar query like this:

SELECT * FROM PREFIX_permalink WHERE slug="manchester";

It should return one record. Check “is_old” value for returned record. If it is “1”, then it is old record and you can delete that record safely using query like this.

DELETE FROM PREFIX_permalink WHERE slug="manchester" AND is_old=1;

Then you can rename permalink “manchester-l105” to “manchester” as described above in “How to edit permalink?” section.

is_old field used to redirect old permalink to new one.

Same method applies for editing category and user permalinks.

What happens when admin or user changes permalink?

When permalink changed then old permalink will be still stored. When site visitor arrives to old permalink, Classibase detects that it is an old permalink by looking to "is_old" field in Database and redirects to new permalink.

  • For example if old permalink was /manchester/ and new permalink is /manchester-city/.
  • Then traffic to /manchester/ will be redirected to /manchester-city/ automatically by classibase.

That is the main reason for storing old permalinks.

Are permalinks same for multilingual website?

Yes, all permalinks same for multilingual website. Only difference will be language prefix for URL. For example:

  • /london/cars/ - for default language. No prefix for default language.
  • /en/london/cars/ - for English website
  • /ru/london/cars/ - for Russian etc.

Similar rule applies for ad permalink URLs.

From SEO perspective it does not make much difference having different permalinks for different languages.

--

What is next:

Leave a Reply

Your email address will not be published. Required fields are marked *