Dotclear

Vous n'êtes pas identifié(e).

Annonce

#1 2016-02-11 09:04:01

tezcatlipoca
Membre
Inscription : 2016-01-29

Changing the url slugs of all posts

Hi all,

I have a situation where I wish to change the urls of all my posts to lowercase.

This is needed because I have a series of old articles from Wordpress with the slug in lowercase.
It is a simple task to put a permanent redirect into an .htaccess file in the root of WP to kick users over to DC, but I've noticed that this results in a 404 error when the landing slug has capitals in.

For example:

http://mysite.com/wordpress/i-am-an-article results in a 404 when redirected to http://mysite.com/dotclear/i-am-an-article, even though the true article url in DC is http://mysite.com/dotclear/I-am-an-Article

In my DC about:config my post_url settings are set as {t} (just the title), which is what I want, but is there a way to order *every* url to be in lowercase, regardless of whether the article case?

Thank you in advance.

Hors ligne

#2 2016-02-11 18:08:42

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Changing the url slugs of all posts

For every post, you may indicate its URL freely if necessary, thus for example changing I-am-an-Article to i-am-an-article. However, I do not know of a faster way to do it than opening every post to change its URL.

There is also a plugin in Dotaddict named tweakURLs, that will allow for every new post to have its URL in lowercase

Hors ligne

#3 2016-02-12 10:39:57

tezcatlipoca
Membre
Inscription : 2016-01-29

Re : Changing the url slugs of all posts

Thanks Phillipe; that pretty much confirms what I suspected.
I'll take a look at that plugin, though, as I'd like to keep capital letters out of my future urls.

Hors ligne

#4 2016-04-27 00:12:08

AlexAu
Membre
Inscription : 2016-04-27

Re : Changing the url slugs of all posts

You can do any URL which you want, for example, Keith Urban concerts: http://keithurbantourtickets.com/

Dernière modification par AlexAu (2016-05-24 14:40:30)

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map