Is it possible (perhaps with some code) to get the url of blogs without blog 1, 2, 3 etcetera?

Topics: seo, blog, url
Be the first person to like this.
JohnJr

The 1, 2, 3 identifies the blog...the ending is just the title added to the url.  Even if you took off the ending title from the URL and left only the number, the blog would still come up.  So the answer is no...sorry.

Be the first person to like this.

I mean to delete blog + nr. and keep the title, 

www.example.com/title

instead of

www.example.com/blog/24/title

This is better for seo results in google.

 

Be the first person to like this.
JohnJr

Yes, I understand.  My little understanding of htaccess is that if the URL was

www.example.com/blog/24-title

then you could do this

RewriteRule ^blog/[0-9](.*)$ /$1 [L,R=301]

but since blog id is identified by itself like this /24/ I don't think it can be done since if you remove that the URL is unfindable.

Be the first person to like this.

okay then it is not possible now, thanks for your reaction

Be the first person to like this.