Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Plugins How can I shorten URLs?

Creating and modifying plugins.
VideoRob
Regular
 
Posts: 19
Joined: Fri Feb 01, 2008 7:11 am

Postby VideoRob » Wed Jul 07, 2010 12:24 am

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.

User avatar
garvinhicking
Core Developer
 
Posts: 26747
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Wed Jul 07, 2010 9:21 am

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: 19
Joined: Fri Feb 01, 2008 7:11 am

Postby VideoRob » Wed Jul 07, 2010 12:28 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 26747
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Wed Jul 07, 2010 3:44 pm

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: 19
Joined: Fri Feb 01, 2008 7:11 am

Postby VideoRob » Wed Jul 07, 2010 7:33 pm

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: 19
Joined: Fri Feb 01, 2008 7:11 am

Postby VideoRob » Thu Jul 08, 2010 6:27 pm

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?

User avatar
kleinerChemiker
Regular
 
Posts: 496
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria

Postby kleinerChemiker » Thu Jul 08, 2010 9:39 pm

S9y dosent "make" any page at all. The content is stored in the db and is accessible with different urls.
mein Blog

Konnte ich helfen? Neues Plugin gesucht?
Did I help you? Do you need a new plugin?
Amazon | PayPal

VideoRob
Regular
 
Posts: 19
Joined: Fri Feb 01, 2008 7:11 am

Postby VideoRob » Fri Jul 09, 2010 2:05 am

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



Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron