Jump to content


Friendly URL's 0.6.x (Apache)


226 replies to this topic

#16 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

    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

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 23 August 2004 - 06:49 PM

summean, on Aug 22 2004, 07:45 PM, said:

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

    Etomite Forum Fan

  • Member
  • Pip
  • 89 posts

Posted 23 August 2004 - 08:04 PM

rad14701, on Aug 23 2004, 01:49 PM, said:

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

    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

#21 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 18 September 2004 - 03:19 PM

pacesetter, on Sep 18 2004, 09:17 AM, said:

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?
I don't believe that this method is an option when using Friendly URL's and Etomite, or using Friendly URL's in general... :( What your URL example is stating is that you want to run the page "webdesign" from within the "services" directory... <_< This method is not how Etomite works... :!!: With all documents being stored within "Documents" and "Document Folders", which are all merely MySQL database table records, your idea of the "webdesign" document being in a physical "services" folder is inaccurate... :huh: The Etomite Document Tree is a logical one, not a physical one, based on Parent > Child references within the database table records... :betterwink: With records being stored in a database, as opposed to your thought that documents are stored in physical document directories on the server, your method is not an option... :blink: If my somewhat obtuse explanation sounds confusing, a more simple answer would be that you can't do it your way... B) And quite honestly, I can't think of why you would need to access an Etomite resource using a direct URL call, unless you are attempting to make the call from an external source rather than from within your Etomized website... :eto:

#22 pacesetter

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 19 September 2004 - 04:05 AM

rad14701, on Sep 19 2004, 01:19 AM, said:

...And quite honestly, I can't think of why you would need to access an Etomite resource using a direct URL call, unless you are attempting to make the call from an external source rather than from within your Etomized website...  :eto:

Thanks for your reply

Well atleast that is my question answered properly. THanks for your help on that one, really all I wanted was to have it look good in the browser bar, ie. www.domain.com/services/webdesign looks alot better then www.domain.com/webdesign.

If it can't be done then I will start to link up my website, the menus and naviagation area as the way Friendly URLs work. I think Friendly URLs are great, but it wouldve been cool to have them look like a directory structure in the browser bar.

Once again, thanks for your reply. I understood it all and it makes alot of sense!
Regards
Luke

#23 Guest_Alex_*

  • Guests

Posted 19 September 2004 - 01:02 PM

You could try entering 'services/webdesign' as alias. Not sure if that'll work though, I've never tried it. :)

#24 nikolajb

    Etomite Forum Newbie

  • Member
  • 47 posts

Posted 05 October 2004 - 11:57 AM

Meh, I can't seem to get friendly URLs to work. I suspect that it may be because mod_rewrite isn't installed on the server (apache), but I'm not really sure. I can't see anything about rewrite in phpinfo, but should I look elsewhere?

RewriteBase _is_ set correctly :)

Thanks in advance.

#25 Guest_Alex_*

  • Guests

Posted 15 October 2004 - 07:04 PM

I think your best bet is to ask your host if the rewrite engine is installed. There's not really any other way to see if it is...

#26 The Bearded One

    Etomite Forum Newbie

  • Member
  • 14 posts

Posted 18 October 2004 - 05:45 PM

I am trying to figure out how to get Etomite's friendly URLs to work. I don't have much experience with ht.access file and have some questions.

First off, I have contacted my hosting provider and confirmed that I am running Apache with mod_rewrite enabled. So that's taken care of.

The comments that come with the ht.access file that comes with Etomite says to uncomment the three Rewrite directives.

RewriteEngine On, RewriteCond, and RewriteRule in the ht.access file were already uncommented, so I figure that's good.

However, it also says to make sure RewriteBase points to the directory where you installed Etomite. I don't know how to do this.,

My questions are:

1) How do you make sure the RewriteBase are pointed to the right directory? Mine is installed in the default Etomite0.6 directory.

2) Is there anything else I should know to ensure friendly URL's will work?

Thanks

Gary Olson

#27 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 18 October 2004 - 11:49 PM

Funny you should have this question today, considering I spent part of the day converting all of my code to use Friendly URL's... :) My server was already configured for them, yet only certain pages were displaying Friendly URL's due to my code... <_< Do any of your URL's display in Friendly format, or does a mouse-over display them as such in your browsers status bar..:?: I'm assuming that you have turned them on in Etomite Manager, as well... :rolleyes: Also, you need to rename the file ht.access to be .htaccess in order for it to be functional... B) Give that a try before you do any other checking and then give a shout if you still have problems... :eto:

#28 The Bearded One

    Etomite Forum Newbie

  • Member
  • 14 posts

Posted 19 October 2004 - 05:06 PM

rad14701, on Oct 18 2004, 03:49 PM, said:

you need to rename the file ht.access to be .htaccess in order for it to be functional... B)  Give that a try before you do any other checking and then give a shout if you still have problems...  :eto:

Converting ht.access to .htaccess seemed pretty obvious, once you pointed it out.

Unfortunatley, now that I've got .htaccess correct, it throws me an internal server error message.

The error I get is "...html/Etomite0.6/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration"

This would seem to relate to the .htaccess line "php_flag zlib.output_compression On".

Unfortunately, I don't know what do to about it.

I assume it's not mis-spelled and I don't know how to include the module if it is missing.

Any thoughts? All help is greately appreciated.

Thanks.

Gary

#29 luislacerda

    Etomite Forum Fan

  • Member
  • Pip
  • 87 posts

Posted 19 October 2004 - 07:21 PM

Funny that I was also converting my site to friendly URL's.

Now that you've renamed ht.access to .htaccess and that your 3 statements are uncommented you should add a new directive to .htaccess. The directive is RewriteBase.

If you google for the subject you will find this RewriteBase directive definition amongst many other pages.

Please do not ever underrate our good friend Mr. Google ;)

#30 Guest_Alex_*

  • Guests

Posted 21 October 2004 - 12:11 PM

And you can also remove the "zlib.output" stuff from the htaccess file. I left that in there by accident, when I should really have removed it! >.<

#31 The Bearded One

    Etomite Forum Newbie

  • Member
  • 14 posts

Posted 22 October 2004 - 04:50 PM

I got the .htaccess file and the Friendly URLs to work!

I'm really getting to love this Etomite CMS.

Thanks for the help.

Gary :P

#32 Dean

    Loves Etomite Forums!

  • Admin
  • 4,746 posts
  • Gender:Male

Posted 31 October 2004 - 09:31 PM

Hi Alex, I'm struggling to get friendly urls working - they worked on my last host, but on my new server they dont seem to work - i have asked the centre tech support and they tell me that mod_rewrite is installed, but when I access the site, I get an error message:

HTTP Error 403 - Forbidden
Internet Explorer

I know it's not my .htaccess file, as i'm using the exact same one from my old host :(


any advice is appreciated.

Dean

#33 nikolajb

    Etomite Forum Newbie

  • Member
  • 47 posts

Posted 01 November 2004 - 07:20 AM

Alex, on Oct 15 2004, 09:04 PM, said:

I think your best bet is to ask your host if the rewrite engine is installed. There's not really any other way to see if it is...

According to my host, it is... Are there any FAQ's on the topic somewhere? Or just some extended info on the settings? The explanation in the htaccess file don't really help me much :)

#34 pcwacht

    Etomite Forum Fan

  • Member
  • Pip
  • 135 posts

Posted 01 November 2004 - 07:27 PM

nikolajb, on Nov 1 2004, 09:20 AM, said:

According to my host, it is... Are there any FAQ's on the topic somewhere? Or just some extended info on the settings? The explanation in the htaccess file don't really help me much :)

Check the rights on .htaccess and ownership
Apache returns a 403, access forbidden, might be when it is trying to access the .htaccess

Good luck,
John

#35 Dean

    Loves Etomite Forums!

  • Admin
  • 4,746 posts
  • Gender:Male

Posted 01 November 2004 - 10:03 PM

pcwacht, on Nov 1 2004, 08:27 PM, said:

Check the rights on .htaccess and ownership
Apache returns a 403, access forbidden, might be when it is trying to access the .htaccess

Good luck,
John

nope, still not working.... i chmodded it to 777 - still error 403

has anyone got the text handy that should be included within the .htaccess file, incase the one that I have isn't somehow correct.

ta

Dean
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Is this the same as everyone else has got? as it isnt working for me - my server centre hsa suggested:

Quote

Have you tried switching on rewrite logging and bumping up the debug level to see whats going on?
but I dont have a clue where to look :(





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users