Jump to content


Friendly URL's 0.6.x (Apache)


  • You cannot reply to this topic
226 replies to this topic

#61 Jirka Cech

    Etomite Forum Newbie

  • Member
  • 8 posts

Posted 02 February 2005 - 02:58 PM

Hi,
I am new user of Etomite, first I would like to thank you, guys, it is just great. Only few remarks, can you fix
1/ date of release is NOT visible at the download page, si I don know if 0.6 is from yesterday or 1999.
2/ documentation is unsufficient, which then take time to find answers by trial and error.
3/ how far is version 0.7 ? weeks? months? years? never?

Remember the golden rule:

Informantion (function,feature, document) which is not well documented does not exists for most other users, thus time and effort invested into its development is wasted.


and my question, I've selected Etomite over the other CMS because it promisses nice URI's (like http://mysamplesite.com/hobbies/bier/prefix123.html intstead of http://mysamplesite....p?123?jdfjg.php) which is good for readers, google, and my good feeling.

Indeed I know that I am not able to play with .htaccess. So I took Etonite.
Somehow that nice URI option does not work, once I enable in in manager modul, all my pages are 404.
Any idea? I have Etomite in /www of my domain. so
http://jirkacech.info
http://www.jirkacech.info
gives me the same thing, as I want.

I did not modified anything, but enabling nice URI at manager.
How di I fix nice URI?

#62 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 02 February 2005 - 03:01 PM

Hi there, friendly URLs require .htaccess to work - if you cant use it, and want to revert back, you need to log into your manager and disable them... I am unaware of any other way to get them working - Eto 0.6 has been going now for about 6 months, and 0.7 is way off.

There are many posts within the forum regarding .htaccess and friendly urls - doing a search will probably yield better results that waiting for someone to post a reply :-)

#63 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 02 February 2005 - 03:15 PM

BTW, the documentation of friendly urls is here > Here <

#64 Jirka Cech

    Etomite Forum Newbie

  • Member
  • 8 posts

Posted 02 February 2005 - 03:17 PM

Quote

Hi there, friendly URLs require .htaccess to work - if you cant use it,
But I can use mode_rewrite and .htaccess on my hosting. I only state that it does not work out of the box in Etonite 0.6, and also does not work after beeing enabled in manager. Any hints? any tips?

#65 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 02 February 2005 - 03:20 PM

Jirka Cech, on Feb 2 2005, 03:17 PM, said:

But I can use mode_rewrite and .htaccess on my hosting. I only state that it does not work out of the box in Etonite 0.6, and also does not work after beeing enabled in manager. Any hints? any tips?
Yes, you need to rename the ht.access files that are included within the etomite distribution to .htaccess - friendly urls only work with linux, they wont work on a windows install out of the box.

There is one in the root of the eto install, and one within the manager folder.

#66 Jirka Cech

    Etomite Forum Newbie

  • Member
  • 8 posts

Posted 02 February 2005 - 03:30 PM

deanstev, on Feb 2 2005, 05:20 PM, said:

Yes, you need to rename the ht.access files that are included within the etomite distribution to .htaccess - friendly urls only work with linux, they wont work on a windows install out of the box.

There is one in the root of the eto install, and one within the manager folder.
fine, I 'll try to rename them. My hosting uses linux as well as I usualy do, if I am not on mac OS X.
the rename thing should be strong RENAME /strong in documentation.

#67 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 02 February 2005 - 03:33 PM

If you sign up to contribute on the WIKI, then you can add that by all means. :-D

#68 Guest_Alex_*

  • Guests

Posted 02 February 2005 - 05:51 PM

As Dean said, the documentation for the current version is a community effort. If you feel it's lacking, then please feel free to sign up for the wiki and do something about it. The friendly URL function is actually documented quite well in the wiki, it tells you exactly what to do. Sure, we could put the keywords in that story in capitals, but then people would complain we're shouting at them. Read the docs carefully, and it explains exactly how to activate the friendly URLs.

Documentation on OS projecs is usually quite lacking, and that's because the people who write it do so for free, without any kind of reimbursement. Make an offer we can't refuse, and I'm sure someone'll write absolutely perfect documentation for you. Also, instead of complaining about the fact that you think the docs are insufficient, maybe you could provide examples, or pointers, so we at least know WHY you think it's insufficient, and what you, as user, expect the documentation to consist of.

There is only one version of Eto available for download at the moment, so why would you even care when it's from? If it's the last release, and it is from 1999, so what? The production stable version is simply the production stable version. It doesn't matter if it's from yesterday or from years ago.

And as for 0.7, if you read the topics in the 0.7 forum, you'd get an impression of roughly what time frame we're aiming for. Suggesting 'never' offends me, by the way. I spend a good deal of time on 0.7 at the moment, and posts like this don't really help. Please take that into account in future posts, thanks.

I'm not trying to get at you or anything, I just want to let you know that round here 'moany' posts aren't received too well.

#69 slawomirplatek

    Etomite Forum Newbie

  • Member
  • 34 posts

Posted 01 March 2005 - 09:39 AM

Hi.
Please if somebody can help me I will appreciate.

I asked my server provider to do this:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

and it was an internal server error.

Please can you write me what it should be changed in apache probably in httpd.conf yes?

Please write me step by step what have to be changed there on apache and also please send me the correct .htaccess file and please tell me where it have to be placed.

Thank you very much in advance.
Please answer.

With the best wishes.


Slawek

#70 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 01 March 2005 - 08:08 PM

slawekp, on Mar 1 2005, 09:39 AM, said:

Please write me step by step what have to be changed there on apache and also please send me the correct .htaccess file and please tell me where it have to be placed.

I suggest searching the forums, as you would have then found this thread (that I have moved your post into)..

I really don't think that anyone will send or write a step by step, but we may be able to provide pointers... which Apache are you using?

search before you post

#71 slawomirplatek

    Etomite Forum Newbie

  • Member
  • 34 posts

Posted 03 March 2005 - 11:15 AM

deanstev, on Mar 1 2005, 09:08 PM, said:

I suggest searching the forums, as you would have then found this thread (that I have moved your post into)..

I really don't think that anyone will send or write a step by step, but we may be able to provide pointers... which Apache are you using?

search before you post
Thank you very much for reply and suggestions.
I am running few different webistes based on etomite there are www.prawda.own.pl, www.truth.own.pl, www.rower.dekalog.pl, www.bicycle.dekalog.pl, www.rower.pr.radom.pl, www.bicycle.pr.radom.pl all of them are on Apache/1.3.31

and www.galeriaart.com.pl are on Apache/1.3.27

Please if you can give me suggestion what to do that friendly url will work properly without Internal server error because of .htaccess on server.

Please help.

I will appreciate your suggestions and help.

With the best wishes.

Slawek

#72 BertB

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 03 March 2005 - 01:34 PM

slawekp, on Mar 3 2005, 12:15 PM, said:

Thank you very much for reply and suggestions.
I am running few different webistes based on etomite  there are www.prawda.own.pl, www.truth.own.pl, www.rower.dekalog.pl, www.bicycle.dekalog.pl, www.rower.pr.radom.pl, www.bicycle.pr.radom.pl all of them are on Apache/1.3.31

and www.galeriaart.com.pl are on Apache/1.3.27

Please if you can give me suggestion what to do that friendly url will work properly without Internal server error because of .htaccess on server.

Please help.

I will appreciate your suggestions and help.

With the best wishes.

Slawek

I had the same problem, and adding RewriteBase / to my .htaccess helped a lot.
Try to put this on your .htaccess file:
RewriteEngine On

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


#73 Guest_rthrash_*

  • Guests

Posted 06 March 2005 - 04:05 PM

BertB, on Mar 3 2005, 08:34 AM, said:

I had the same problem, and adding RewriteBase / to my .htaccess helped a lot.
Try to put this on your .htaccess file:

...
RewriteBase /
...

Thank you for that! I think it should solve the issue I was having with SEF URLs with alias paths as provided by Daath, especially with installs that are done not in the root of a directory by change it to "RewriteBase /path/to/intsall/". :D

#74 slawomirplatek

    Etomite Forum Newbie

  • Member
  • 34 posts

Posted 08 March 2005 - 10:01 AM

BertB, on Mar 3 2005, 02:34 PM, said:

I had the same problem, and adding RewriteBase / to my .htaccess helped a lot.
Try to put this on your .htaccess file:
RewriteEngine On

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Hi,
Thank you very much for your help and suggestions. I will try to do that what you suggested. I hope it will work.

With the best wishes.

Slawek

#75 slawomirplatek

    Etomite Forum Newbie

  • Member
  • 34 posts

Posted 08 March 2005 - 10:09 AM

BertB, on Mar 3 2005, 02:34 PM, said:

I had the same problem, and adding RewriteBase / to my .htaccess helped a lot.
Try to put this on your .htaccess file:
RewriteEngine On

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Hi, I made out of the code above .htaccess file and it happened so:

Parse error: parse error, unexpected T_STRING in /home/wwwstrony/rower.pr.radom.pl/index.php(643) : runtime-created function on line 2

Notice: Undefined index: version in /home/wwwstrony/rower.pr.radom.pl/index.php on line 1026

Notice: Undefined index: code_name in /home/wwwstrony/rower.pr.radom.pl/index.php on line 1026

Parse error: parse error, unexpected T_STRING in /home/wwwstrony/rower.pr.radom.pl/index.php(643) : runtime-created function on line 2

Warning: preg_replace_callback() requires argument 2, '', to be a valid callback in /home/wwwstrony/rower.pr.radom.pl/index.php on line 643
« Etomite Parse Error »
Etomite encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »

PHP error debug
Error: preg_replace_callback() requires argument 2, '', to be a valid callback
Error type/ Nr.: Warning - 2
File: /home/wwwstrony/rower.pr.radom.pl/index.php
Line: 643
Line 643 source: $documentSource = preg_replace_callback($in, create_function('$m', $func), $documentSource);

Parser timing
MySQL: 0.0037 s s (5 Requests)
PHP: 0.0214 s s
Total: 0.0251 s s

Powered by Etomite

Notice: Undefined index: HTTP_REFERER in /home/wwwstrony/rower.pr.radom.pl/index.php on line 1216


Please can you help me? How to respolve the problem?

With the best wishes.

Slawek

#76 jebus

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 27 April 2005 - 05:36 PM

My apologies if this has already been answered, but I think I've looked around.

I'm having a problem with SEF URL's with a domain that's being served from a subdirectory in my root. Such as:

mydomain.com/sites/another_domain

If I access the site like this - mydomain.com/sites/another_domain - the alias url's work fine. However, when I try to go directly to another_domain.com/alias.html, I get 404's.

I've tried various RewriteBase commands, such as:

RewriteBase /
RewriteBase /sites/another_domain/
RewriteBase /var/www/html/sites/another_domain/

and nothing works. So, if anybody could explain how it SHOULD work, I'll try to go from there. Thanks a lot, and thanks for Etomite. Great CMS!

#77 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 27 April 2005 - 07:49 PM

Does it work without aliases on?

In other words, does:

another_domain.com/index.php

take you to your home page as it should? If so, do other non-aliased pages work like:

another_domain.com/index.php?id=6

#78 jebus

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 27 April 2005 - 08:01 PM

Yeah, index.php takes me to the home page. Non SEF url's also work fine.

It seems to me that no RewriteBase would be required, since that should be handled in the http.conf, or whatever is directing the domain to the subdirectory. I'm assuming, since SEF url's work if I go directly to mydomain.com/sites/another_domain, that it must be some conflict with the rewrite happening in the .htaccess file, and the redirect for the domain. However, since I know next to nothing about Apache and these issues, I'm a bit at a loss.

#79 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 27 April 2005 - 08:13 PM

jebus, on Apr 27 2005, 05:01 PM, said:

Yeah, index.php takes me to the home page. Non SEF url's also work fine.

It seems to me that no RewriteBase would be required, since that should be handled in the http.conf, or whatever is directing the domain to the subdirectory. I'm assuming, since SEF url's work if I go directly to mydomain.com/sites/another_domain, that it must be some conflict with the rewrite happening in the .htaccess file, and the redirect for the domain. However, since I know next to nothing about Apache and these issues, I'm a bit at a loss.
Are you attempting to use a single .htaccess file or do you have one inthe root of each domain...:?: Each separate domain subdirectory can have its own .htaccess file... Apache reads from the servers docroot inward with every page access and acts according to the one in the current subdirectory... B)

But if you are attempting to host multiple domains you will need to setup virtual domains within Apache... When I do this kind of a setup I usually place all of the subdomains off the original docroot which then makes that domain inaccessible... If I want to use the content of the docroot I move it into another subdirectory... And I usually do it the easy way by naming the subdirectories with the actual domain names...

Hope this helps... :eto:

#80 jebus

    Etomite Forum Newbie

  • Member
  • 10 posts

Posted 27 April 2005 - 08:36 PM

Thanks for the replies, and I'm not sure I understood all of that, but I'll try to answer the questions...

I do have a distinct .htaccess file in the domain in the subdirectory. I have the addon domain in a directory (named the same as the domain as you suggest) within a subdirectory of the root, such as:

/sites/addon_domain/

and would like to be able to continue to add new domains, all within the "sites" directory.

I added the addon domain through my ISP's admin tool, and pointed it at that subdirectory. I can go to addon_domain.com and access the site. It's only when I try to use SEF url's that I have a problem.

This essentially mean I have set up a virtual domiain, correct? Surfing to addon_domain.com brings be to the site, so I'm assuming Apache sees it that way, but apparently something is amis. My apologies for my Apache ignorance.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users