Jump to content


Using Aliases Without Using Friendly Url's


10 replies to this topic

#1 mrruben5

    Likes Etomite Forums!

  • Member
  • PipPip
  • 255 posts

Posted 08 August 2005 - 06:34 PM

I've just installed etomite on a site where mod_rewrite is not installed, but the user I installed etomite for someone who does like to use aliases. Who doesn't anyway? Who likes index.php?id=123456789 ?

The solution was easy.
  • When you enable mod_rewrite for etomite, and also enable aliases, etomite generates a prefix and postfix for the alias.
  • Etomite "listens" to 2 sorts of query strings:
    • ?id=????
    • ?q=???
So what did I do? I set the prefix for fur's to "index.php?q="

Now you can use aliases without mod_rewrite B)

Sticky please?

Attached Files



#2 Dean

    Loves Etomite Forums!

  • Admin
  • 4,746 posts
  • Gender:Male

Posted 08 August 2005 - 07:21 PM

Sticky'ed :D

#3 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 08 August 2005 - 07:24 PM

Very clever. Very clever indeed.

#4 vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 09 August 2005 - 06:21 AM

So this will turn the URL /index.php?id=2 to the friendly URL /index.php?q=2
I don't get it. What's so clever about that. It's even one character longer.
Probably Funny URLs :)

#5 mrruben5

    Likes Etomite Forums!

  • Member
  • PipPip
  • 255 posts

Posted 09 August 2005 - 08:28 AM

If you put an alias on a document, it will use that instead of a number. id only accepts numbers while q also accepts aliases.

#6 vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 09 August 2005 - 09:40 AM

Ah, so I could use things like /index.php?q=homepage, /?q=faq and /?q=about_us, presuming I have aliases of homepage, faq and about_us. Cool.
I'll go and test it since my host is very slow with answering my requests about enabling mod_rewrite (see other thread about Furls).
Thank you very much for your explanation.

#7 mrruben5

    Likes Etomite Forums!

  • Member
  • PipPip
  • 255 posts

Posted 09 August 2005 - 05:57 PM

Oh, yes, I don't even need to put index.php inthere. just ?q= :P

#8 cathode

    Loves Etomite Forums!

  • Staff
  • 648 posts
  • Gender:Male

Posted 03 December 2005 - 08:39 PM

Unbelievably cool... :) B)

#9 luke

    Etomite Forum Newbie

  • Member
  • 22 posts

Posted 06 December 2005 - 11:10 PM

mod-rewrite is for unix only so does anyone know if this can be used on Windows Server?

#10 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 06 December 2005 - 11:25 PM

it should work - all it does is change the way links are generated by etomite.

However, you may find that some snippets don't work correctly, depending on what assumptions the author of the snippet made about how links are generated.

#11 luke

    Etomite Forum Newbie

  • Member
  • 22 posts

Posted 10 December 2005 - 12:18 AM

This is now sorted and I have managed to get FUL's working on a windows server as per my post http://www.etomite.com/index.php?showtopic=548&st=165





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users