Forums / Suggestions / Better and easier urls please! :)
Noicokuna Niemoge
Wednesday 04 February 2009 6:42:13 am
Hi;
I'd like to request taking a look at nice urls in Exponential in shared hosting environment. Without virtual host, it's pretty much impossible to have nice urls... I tried everything, from an article in documentation to many forum posts... nothing works. Either I get 404, 500 errors or the htaccess settings forward me to index.php.
I'd like to ask you for any way to have nice urls in shared hosting environment. Maybe an extension combined with mod_rewrite can do the trick? Or maybe just an official guide on how to do it?
I just cannot make it work. :(
Please pick some kind of shared hosting environment with php-cgi (there are 15-day trials and so on), install there eZ and figure it out for us...
Shiki soku ze ku...
Gaetano Giunta
Wednesday 04 February 2009 9:40:51 am
I cannot voice for cgi-based hosting, but apache+mod_php+mod_rewrite is all you need for nice urls. no vhost involved at all
Principal Consultant International Business Member of the Community Project Board
André R.
Wednesday 04 February 2009 10:16:50 am
And by nice urls you mean urls withouth index.php in it?
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Thursday 05 February 2009 12:40:26 am
Yes, indeed: without index.php
Ehh, so what about php-fcgi? I'm toasted? I can give you some details about my hosting: it seems it's already running in virtual host mode, but the root folder is set to website root. My websites are in subcategories and by now I don't want to base all my sites on one Exponential since some of my sites are running on different CMS engines.
From phpinfo:
_SERVER["SERVER_ID"] yot _SERVER["SCRIPT_URL"] /info.php _SERVER["SCRIPT_URI"] http://mydomain.com/info.php _SERVER["HTTP_HOST"] mydomain.com _SERVER["HTTP_ACCEPT_LANGUAGE"] pl,en-us;q=0.7,en;q=0.3 _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-2,utf-8;q=0.7,*;q=0.7 _SERVER["HTTP_KEEP_ALIVE"] 300 _SERVER["HTTP_CONNECTION"] keep-alive _SERVER["PATH"] /bin:/usr/bin:/usr/local/bin _SERVER["SERVER_SIGNATURE"] no value _SERVER["SERVER_SOFTWARE"] Apache/2 _SERVER["SERVER_NAME"] mydomain.com _SERVER["SERVER_ADDR"] some.ip.address _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] some.ip.address _SERVER["DOCUMENT_ROOT"] /home/my_site/ftp _SERVER["SERVER_ADMIN"] webmaster@my_site.pl _SERVER["SCRIPT_FILENAME"] /home/my_site/ftp/info.php _SERVER["REMOTE_PORT"] 50121 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /info.php _SERVER["SCRIPT_NAME"] /info.php _SERVER["PATH_TRANSLATED"] /home/my_site/ftp/info.php _SERVER["PHP_SELF"] /info.php _SERVER["REQUEST_TIME"] 1233820726
So, if eZ is located in home/my_site/ftp/Exponential/ .... I pretty much don't know what to do.Is there any additional info you need? Can you propose me a solution...?