Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL with category and city, region or country rewrite (SEO for Search) #1313

Closed
groomain opened this issue Jan 9, 2014 · 4 comments
Closed

Comments

@groomain
Copy link
Contributor

groomain commented Jan 9, 2014

Hi,

I just update to 3.3.2 and all my url with region or city have changed. (osc_search_url)

I had before this
http://mywebsite.com/category,{category_slug}/city,{city_name}

I have now this :
http://mywebsite.com/{category_slug}_{city_slug}-c{city_slug}


If a city haven't any slug the url is this one :
http://mywebsite.com/{category_slug}_-c{city_slug}


You need to remplace the underscore with a dash.
Google understand this url : my-category_my-city-c123345 as
"my"
"category_my"
"city"

He doesn't explode the underscore.
cf : https://support.google.com/webmasters/answer/76329?hl=en
"Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html. We recommend that you use hyphens (-) instead of underscores (_) in your URLs."

Why use city and region primary key ? The category slug as the city and region slug are unique.
I think the best url will be this one. If of course it's possible :

for category : http://mywebiste.com/{category_slug}
for city : http://mywebiste.com/{category_slug}/{city_slug}
for region : http://mywebiste.com/{category_slug}/{region_slug}
for country : http://mywebiste.com/{category_slug}/{country_slug}

The searches url are the best for our SEO. They are permanently visible by search engine and are never deleted but if url always change, they see them as duplicate content which is really bad.

Thanks for your work !

@adrienrn
Copy link
Contributor

Seems like I got the same problem here :(. I'm afraid I won't update until we figure something out. It may be just us (one of our settings / dev environnement) though not Osclass, but it works fine on 3.2.

@groomain
Copy link
Contributor Author

Unfortunately, slug between country region and city can be the same.

Maybe it's will be better to make them unique ?

@conejoninja
Copy link
Member

I will close this issue because we're already working on it as part of the new version, thanks for the information

@elite1290
Copy link

Hi Conejoninja and All, anyone who has answer to following?

I'm presently running 3.3.2 and please help & advice on below Q1,2,3,4:

Q1. which new version of osclass resolve above issue, and what is the new changes to above format for the new version of oclass which you mentioned you're working on it?

Q2. The sitemap when I generate, it doesn't
generate sitemap for -> http://domain.com/condo_metromanila-r49
above is category followed by region, please advice how to to generate url
for above category followed by region in sitemap?

Q3. and also what's the impact of _ underscore for Q2? which osclass php file and code
I need to modify to change condo_metromanila-r49 to -> condo-metromanila-r49?
Will it help for seo by changing _ to - for above?

Q4. and after select include listing for sitemap I noticed there's _ as followed:
http://domain.com/property/for-sale-in-tanza-via-cavitex_i192

what's the impact of _ underscore for above cavitex_i192? which osclass php file and code
I need to modify to change cavitex_i192 to cavitex-i192?
Will it help for seo by changing _ to - for above?

Appreciate your advice on above Q1,2,3,4 urgent hope you can reply soon as
the Seo already started, Thanks alot and to hear from you soon........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants