sitemap  |  contact

Sakic.Net Forum
08 January 2009, 20:21 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Introducing AJAX Scroller - Joomla News Slider Module: http://www.sakic.net/news/introducing_ajax_scroller/
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: "-" replacement  (Read 2838 times)
lafactory.com
Newbie
*
Posts: 5


View Profile
« on: 24 June 2007, 23:14 »

I would like to use "-" instead of "_" but I have a lot of titles with already "-" inside and they are replaced with "&11" which is not exactly se friendly.
for the moment I put "_" but I hope there is a solution (no aliases, I have at least 2000 articles with "-" inside the title).
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #1 on: 25 June 2007, 00:03 »

You can have hyphen replaced with underscore. Put "-=>_" in URL replacements.
Logged

lafactory.com
Newbie
*
Posts: 5


View Profile
« Reply #2 on: 25 June 2007, 00:15 »

You can have hyphen replaced with underscore. Put "-=>_" in URL replacements.

I tried that, I still have "%11". and to be honnest it's quite silly since I want  "-" and not" _". the simplest way would be, I think, when we put "-" which is now the setting by default in sef advance, your programm does not replace "-" by something else when he finds it.
or a setting to replace "%11" with "-". I think you had such a setting in a older version to replace %11 with something else.
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #3 on: 25 June 2007, 00:59 »

You can't have "-" in articles if you use "-" as word separator. It's as simple as that. That's why when you have "-" as word separator the system is replacing all hyphens that you have in titles with %11.

If you don't want %11 in URLs either use underscore "_" as word separator or have your hyphens replaced with something else (like underscore or whatever, as suggested above).
Logged

lafactory.com
Newbie
*
Posts: 5


View Profile
« Reply #4 on: 25 June 2007, 01:18 »

You can't have "-" in articles if you use "-" as word separator. It's as simple as that. That's why when you have "-" as word separator the system is replacing all hyphens that you have in titles with %11.

If you don't want %11 in URLs either use underscore "_" as word separator or have your hyphens replaced with something else (like underscore or whatever, as suggested above).

I understand that, but I can't change more than 2.000 articles. I hoped it would be possible to change %11 for something else, more elegant. but since it's not possible...
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #5 on: 25 June 2007, 01:35 »

It IS possible. As I said use URL replacements:
-=>whatever_you_want

It is working, if not - you are doing something wrong.

See the attached picture. There you can see how I have replacement -=>_
This way my article called "Software co-existance" will appear as:
/software-co_existance/
instead of
/software-co%11existance/
« Last Edit: 25 June 2007, 01:43 by Saka » Logged

lafactory.com
Newbie
*
Posts: 5


View Profile
« Reply #6 on: 25 June 2007, 01:44 »

It IS possible. As I said use URL replacements:
-=>whatever_you_want

It is working, if not - you are doing something wrong.

right... I did something wrong  Roll Eyes I tried again and yes, it works now  Grin
thanks
Logged
netfly
Jr. Member
**
Posts: 56


View Profile
« Reply #7 on: 25 June 2007, 03:54 »

I recommend you don't use underscore to separate words since google will consider only one word.

For example:
red-car (2 words)
red~car (2 words)
red_car (only one word)
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #8 on: 25 June 2007, 05:15 »

On the other hand "co-existance" is one word. So the URL replacement "co_existance" seems appropriate in this case.
Logged

lafactory.com
Newbie
*
Posts: 5


View Profile
« Reply #9 on: 25 June 2007, 15:47 »

I recommend you don't use underscore to separate words since google will consider only one word.

the problem is that I am too good  Grin I use "-" for years directly hardcoded in my titles.
btw, this "-" instead of "_" is overrated.
Logged
netfly
Jr. Member
**
Posts: 56


View Profile
« Reply #10 on: 25 June 2007, 18:13 »

On the other hand "co-existance" is one word. So the URL replacement "co_existance" seems appropriate in this case.

In this specific case yes, for sure  Cheesy
Logged
GabyZ
Jr. Member
**
Posts: 54


View Profile
« Reply #11 on: 25 June 2007, 19:06 »

I think that there's a problem with the replacement, the old urls are indexed with '%11', google will find new urls with '_' but the old urls with '%11' are not 301 redirected to the new with '_', so this could be considered duplicate content.

How we can add the 301 redirect?
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #12 on: 25 June 2007, 20:26 »

That's why it's important to plan your site from beginning.

You can not add redirects like that with SEF Advance but you can add them in .htaccess if needed.
Logged

Pages: [1]
  Print  
 
Jump to: