Jump to content


Friendly URL's 0.6.x (Apache)


  • Please log in to reply
226 replies to this topic

#1 Guest_MASsIVE_*

Guest_MASsIVE_*
  • Guests

Posted 04 August 2004 - 11:21 PM

I must say thanks so much for RC, did not even know it was out hahaha, left out in the cold... brrrr hahahaha

Newsletter available for this ??

Anyhow, back to topic, I wanted to use the Friendly URL or alias for folders, but it mentions I must write a .htaccess file what exactly do I need to write to make this work ??


ALEX....great stuff 8)

#2 xmitchx

xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 04 August 2004 - 11:23 PM

An ht.access comes with the RC1 download. Just rename it to .htaccess and upload it to your Etomite folder.

If it doesnt work, you may need to change the RewriteBase, but try it w/o it first :)

#3 Guest_MASsIVE_*

Guest_MASsIVE_*
  • Guests

Posted 04 August 2004 - 11:28 PM

ok

I have a problem I try to access index.php and the browser is downloading it, the files are showing or exposed.

I may have to set the default file in .htaccess and the FURL's how can I comine them as one ??

#4 breezer

breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 04 August 2004 - 11:30 PM

8) Check out the Wiki page on friendly url's, should get you set up.

#5 xmitchx

xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 04 August 2004 - 11:33 PM

Did you enable the furl support?

#6 Guest_MASsIVE_*

Guest_MASsIVE_*
  • Guests

Posted 04 August 2004 - 11:34 PM

Thanks alot all :)

Seems to work like a charm :)

Will the menu pic up the folder alias's or do I need to hard link those??


I know asking more questions hahaa

Had to edit it to be more clear 8)

#7 breezer

breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 04 August 2004 - 11:43 PM

:D Although it is far from complete, the Wiki has most of the critical parts covered so believe me it is worth your time to read the whole thing.......

and if anyone can contribute there I'm sure it would be appreciated by all.

All Hail Etomite!! Posted Image

#8 Guest_Alex_*

Guest_Alex_*
  • Guests

Posted 05 August 2004 - 11:18 AM

Just output all links like this: [~123~]. This way, Etomite will automatically replace it with the best possible link to the document, whereby:

index.php?id=123 < p123.html < alias

#9 WebbyMom

WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 05 August 2004 - 04:08 PM

Sorry for being dense Posted Image, but I'm not getting it.

I've set up FURLs in my Manager (v. 0.6), made the two .htaccess files, one in my etomite folder, one in the manager folder.

I currently use a list for my navigation on this site, as a Chunk, like so:

<ul>

<li><a href="index.php?id=1">Home</a></li>

<li><a href="gallery/albums/">Gallery</a></li>

<li><a href="index.php?id=16">Fun Stuff</a></li>

<li><a href="colsplace.html">Col's Place</a></li>

<li><a href="flybabies.html">Flybabies</a></li>

</ul>

Just where do I put [~16~] in this code, or how? And, for some reason, my FURLs are not working. My alias for Fun Stuff is 'funstuff', but it doesn't show up anywhere or anyhow.

#10 JuggoPop

JuggoPop

    Likes Etomite Forums!

  • Member
  • PipPip
  • 158 posts

Posted 05 August 2004 - 04:33 PM

from what I understand... it's like this:

<a href="[~1~]">Home</a>


#11 WebbyMom

WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 05 August 2004 - 04:40 PM

AHA! That works! Posted Image

I went back to see what I did wrong - I was following the documentation, but this is what it said:

To insert a link to another document within your Etomite site, simply type the id number of the document, surrounded by [~ and ]. [123~] will point to the document with ID 123.


So I was only using one ~ in there.

I'll go change that.........

#12 JuggoPop

JuggoPop

    Likes Etomite Forums!

  • Member
  • PipPip
  • 158 posts

Posted 05 August 2004 - 04:52 PM

some of that .doc confused me as well.
originally I thought

[~1~]

would produce

<a href="filename">pagename for the file</a>

so that when you updated the pagename in the manager it would update in the links throughout... maybe there will be something like a pagename code with an id added to it like the new news snippet... where it will find the name and you can just put in something like

<a href="[~1~]">[*pagetitle=1*]</a>

who knows... (just rammbling here)

#13 summean

summean

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 20 August 2004 - 05:20 AM

Is there any way I can verify if mod_rewrite is enabled? I am using a shared/hosted server and when I turn on FURLS, I get error 500: Internal Server Error.

I have the .htaccess files in the correct places....

#14 fiscus

fiscus

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 20 August 2004 - 05:36 AM

Hmm i've never looked into friendly urls before but I have just tried to enable them.

I do have mod_rewrite turned on in apache (I too am on a shared server though).

I have the correct .htaccess files in the root and the one in the manager dir with the mod rewrite off.

I too get the error 500: internal servor error when I turn them on.

I don't think this is an RC2 specific issue cause i think i remember the first time i installed phase/etomite that I had issues with friendly urls and I haven't revisited until now.

Any ideas?

#15 summean

summean

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 22 August 2004 - 11:45 PM

So I'm guessing that if I am getting the 500: internal server error, Friendly URLs are probably not gonna work on my site. Can anyone vouch for that?

#16 Guest_Alex_*

Guest_Alex_*
  • Guests

Posted 23 August 2004 - 04:20 PM

You might have to add an extra line to your htaccess:

RewriteBase /path/to/your/root

And if that doesn't work, check the apache logs to see if there's any error messages. Maybe they'll help you set the Rewritebase path properly.

#17 summean

summean

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 23 August 2004 - 06:33 PM

After reading all about mod_rewrite and playing with my .htaccess files, I finally got FURLs to work on my site.

Added this:

RewriteBase /

If you have your site as a subdirectory of the root domain name (e.g. yourdomain.com/etomite), you can try this:

RewriteBase /etomite/
(where etomite is the folder containing your etomite install)

#18 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 23 August 2004 - 06:49 PM

So I'm guessing that if I am getting the 500: internal server error, Friendly URLs are probably not gonna work on my site.  Can anyone vouch for that?

<{POST_SNAPBACK}>


It would be fairly safe to assume that your server is not configured for friendly URL's... If you are, in fact, seeing a friendly URL in your browsers addressbar and are getting this error, that is a safe assumption... :(

#19 summean

summean

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 23 August 2004 - 08:04 PM

It would be fairly safe to assume that your server is not configured for friendly URL's... If you are, in fact, seeing a friendly URL in your browsers addressbar and are getting this error, that is a safe assumption...  :(

<{POST_SNAPBACK}>



I actually did get them to word finally. Since I'm using a hosted/shared server, I guess the Apache configuration was a little different. Adding a "RewriteBase" section to my .htaccess fixed the problem.

#20 pacesetter

pacesetter

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 18 September 2004 - 01:17 PM

Alex and team, top job on the fantastic CMS. I hope to intergrate it into many sites into the future, and can assure you I will contribute help (where I can) and make a decent donation for every website I impliment it into!

Before we get there though, I want to set up my site.... At the moment I have the following site navigation - Friendly URL aliases in the brackets :)

Home (home)
Products (products)
Services (services)
-Computer Repairs (computerrepairs)
-Website Design (webdesign)
Contact Us (contact)

Thats not the complete site but Im sure you get the drift. I want to be able to type into my browser on a root install, www.domainname.com/services/webdesign and have it take me to the webdesign page. At the moment it refuses to work, and I can only access these pages from www.domainname.com/webdesign. Is there somewhere to configure the directory structure so I can have the friendly URLs display the folders I have created?

Please advise! I can live without it, but Im sure on a complex CMS as this, a feature like this is hiding somewhere <_<

Best Regards
Luke




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users