Error

Author Message

P G

Tuesday 11 July 2006 6:48:34 am

have installed a new site and now you can access the site here:
http://www.amazingemporium.net/index.php/chapters_events/

but not here??:
http://www.amazingemporium.net/chapters_events/

does a config file need altering?

Vjeran Vlahovic

Tuesday 11 July 2006 8:33:38 am

You have to add one directive inside settings/override/site.ini.append.php:

ForceVirtualHost=true

inside [SiteAccessSettings] section.

Also, You have to configure .htaccess. Here are some examples:

http://ez.no/community/forum/install_configuration/htaccess_removing_index_php_and_online_editor/

http://www.netgen.hr/eng

P G

Tuesday 11 July 2006 9:14:29 am

That makes the whole site go down?

Vjeran Vlahovic

Tuesday 11 July 2006 9:29:16 am

Hi,
what error do you have?

Keep in mind that after these changes old /index.php/ links don't work anymore. So you have to delete cached files to recreate all cacheviews, cached blocks, etc., which will now contain new links without index.php part. You can delete everything in /public_html/yourweb/var/sitevar/cache dir.

http://www.netgen.hr/eng

P G

Tuesday 11 July 2006 9:42:23 am

deleated the cache

all the links still have index.php in them ( do I need to reinstall?)

http://www.amazingemporium.net/

Vjeran Vlahovic

Tuesday 11 July 2006 9:53:49 am

No, you don't need to reinstall it...
Look at the "View list" links at the bottom of your homepage... They do not contain index.php part any more. So I suppose you didn't delete all caches :)

http://www.netgen.hr/eng

P G

Tuesday 11 July 2006 10:39:01 pm

ok, but now 'You don't have permission to access /chapters_events/news on this server.'

http://www.amazingemporium.net/chapters_events/news

Vjeran Vlahovic

Wednesday 12 July 2006 2:05:21 am

Did you configure .htaccess inside your ez publish installation as instructed above? Please paste the content of your .htaccess here.

http://www.netgen.hr/eng

P G

Wednesday 12 July 2006 5:26:15 am

This is the whole file

# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

php_value allow_call_time_pass_reference 0

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "ezpublish-3.6.0">
# order allow,deny
# allow from all
#</Files>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

P G

Wednesday 12 July 2006 9:31:34 am

Have changed it to this, but still the same problem

# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

php_value allow_call_time_pass_reference 0

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "chapters_events">
# order allow,deny
# allow from all
#</Files>

RewriteEngine On RewriteRule !\.(gif|jpe?g|png|css|js|jar|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C] RewriteCond %{HTTP_HOST} ^webdav\..* RewriteRule ^(.*)

webdav.php [L] RewriteCond %{HTTP_HOST} ^soap\..* RewriteRule ^(.*) soap.php [L] RewriteRule ^var/cache/debug.html.* - [L] RewriteRule

^var/[^/]+/cache/debug.html.* - [L] Rewriterule ^var/storage/.* - [L] Rewriterule ^var/[^/]+/storage/.* - [L] RewriteRule ^var/cache/texttoimage/.* - [L] RewriteRule

^var/[^/]+/cache/texttoimage/.* - [L] Rewriterule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L] Rewriterule ^share/icons/.* - [L] Rewriterule

^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L] Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L] RewriteRule .*

index.php [L]

Vjeran Vlahovic

Wednesday 12 July 2006 9:49:29 am

Try with something like this (remove all other content from .htaccess!):

RewriteEngine On

RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|imagespl|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^sitemaps/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteCond $1 !^index.php$
RewriteRule (.*) /index.php

DirectoryIndex index.php

Hope this will work!

http://www.netgen.hr/eng

P G

Wednesday 12 July 2006 10:28:10 am

I put this in, but now this happends http://www.amazingemporium.net/

RewriteEngine On

RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|imagespl|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L] RewriteRule ^sitemaps/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteCond $1 !^index.php$ RewriteRule (.*) /index.php

DirectoryIndex index.php

Vjeran Vlahovic

Wednesday 12 July 2006 11:15:30 am

Argh :)

Contact me at vjeran at g mail.

http://www.netgen.hr/eng

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.