Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Messy urls

#1 2006-02-04 21:27:27

dragonfey57
New Member
Registered: 2006-02-02
Posts: 8

Messy urls

I have finally managed to figure out static pages. :-)

But my host doesn’t recognize the clean urls. So I have been using plain html to call each of the pages, as in using the a href tag.

Is this the easiest way or is there something more sutible to use?

thanks!

Offline

#2 2006-02-04 22:07:05

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Messy urls

I use <code><a></code> tags to link to my articles, too, and I have clean urls. I think that’s just normal.

However, if you think you might one day move to a host supporting clean urls (like <a href=“http://www.textdrive.com”>Textdrive</a>) and don’t want to break all your links after changing your permalink mode, there’s always <a href=“http://forum.textpattern.com/viewtopic.php?id=2761”>the zem_link</a> plugin.

Offline

#3 2006-02-04 22:10:09

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Messy urls

If you haven’t already, you should go to Preferences and set “Permanent link mode” to “?=messy”. Txp should then generate messy URLs automatically for any TXP tags that output URLs. If you need to hand-code URLs you will have to use normal “a href” tags however there is a tag which outputs the base URL – <code><txp:site_url /></code> – which you can use inside an “a href” tag. You will still need to enter the final destination so something like <code><a href=”<txp:site_url />index.php”>Home</a></code> or <code><a href=”<txp:site_url />index.php?s=contact”>Contact</a></code>.

Last edited by thebombsite (2006-02-04 22:11:15)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2006-02-06 06:25:06

dragonfey57
New Member
Registered: 2006-02-02
Posts: 8

Re: Messy urls

Thanks for the info. I will check it out as soon as I can get the templates to reflect changes. lol.

Offline

  1. Index
  2. » Archives
  3. » Messy urls

Board footer

Powered by FluxBB