How can I shorten URLs?

Creating and modifying plugins.
Post Reply
VideoRob
Regular
Posts: 21
Joined: Fri Feb 01, 2008 6:11 am

How can I shorten URLs?

Post by VideoRob »

I want to know how to shorten URLs. For example

From
http://www.dietpillexpert.co.uk/index.p ... blets.html

To this:
http://www.dietpillexpert.co.uk/4-Capsi ... blets.html

Is this possible? I had a look at link trimmer but couldn't figure out how to use it.

The reason I want to this is so that when my page shows in google results the words in the post show up as well in the URL - this will get me more clicks. I also think it looks neater which encourages surfers to click around.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How can I shorten URLs?

Post by garvinhicking »

HI!

You cannot actually get (without manual interaction) the /archives/ outside of the URL.

What you can go is enable URL rewriting in the s9y global configuration (set it to Apache ErrorHandling for example), and you can change your permalinks from /archives/ to /a/ for example to shorten those URLs.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
VideoRob
Regular
Posts: 21
Joined: Fri Feb 01, 2008 6:11 am

Re: How can I shorten URLs?

Post by VideoRob »

Thanks Gavin, i've done that

But does that mean I now have two pages the same?

http://www.dietpillexpert.co.uk/index.p ... blets.html

http://www.dietpillexpert.co.uk/index.p ... blets.html

I just did a new post and its the same, it seems to making two pages
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How can I shorten URLs?

Post by garvinhicking »

Hi!

Did you change both the permalink path AND the permalink pattern? There are at least two occurences of the "archives" string in the permalink configuration.

Also, as long as you have index.php?/... this means your URL rewriting is not enabled.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
VideoRob
Regular
Posts: 21
Joined: Fri Feb 01, 2008 6:11 am

Re: How can I shorten URLs?

Post by VideoRob »

Ok, heres what I did

In Apperance and Options I set URL Rewriting to Use apache errorhandling

In Permalinks I set Permalink Entry URL structure to a/%id%-%title%.html

Path to archives to a and Path to archive to a

It's still making two posts. Heres a test one I just made

http://www.dietpillexpert.co.uk/a/17-Ad ... pills.html

http://www.dietpillexpert.co.uk/archive ... pills.html
VideoRob
Regular
Posts: 21
Joined: Fri Feb 01, 2008 6:11 am

Re: How can I shorten URLs?

Post by VideoRob »

I actually now have 3 pages

http://www.dietpillexpert.co.uk/index.p ... pills.html

Its making 3 pages everytime I do a new post now.

Any help on this guys?
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: How can I shorten URLs?

Post by kleinerChemiker »

S9y dosent "make" any page at all. The content is stored in the db and is accessible with different urls.
VideoRob
Regular
Posts: 21
Joined: Fri Feb 01, 2008 6:11 am

Re: How can I shorten URLs?

Post by VideoRob »

Ok, thanks, I understand.

Now I have another problem. I maxed out the space on my server when I was trying to upload some pictures, serendipity threw up some errors and wouldn't let me upload any more pics. So I freed up some space on the server and it seemed to be working again.

For some reason now when I go to insert new media in a post the pics aren't showing up. I took a screenshot to show you
http://www.dietpillexpert.co.uk/uploads/screenshot.png
Post Reply