Forums / Setup & design / Permissions in EZ publish,,

Permissions in EZ publish,,

Author Message

Petter Neumann

Wednesday 07 January 2004 2:02:05 am

I has installed Ez publish in my site and it it seems that it's working ok. Now I want to add a Flash intro to the site that is named "index.php" and want to rename the orginal index.php to index2.php. The flash intro (index.php) works ok, but when the flash intro is finished (or skipped) and I want to go to index2.php (the orginal index.php) i only get a :

Forbidden

You don't have permission to access /index2.php on this server.

How can I set correct permissions to allow this ? I has tried .htacsess but it don't work,,
/ Petter

Rob Clews

Wednesday 07 January 2004 2:19:40 am

What are the permissions for the file and whose the owner?

Sven Berend

Monday 12 January 2004 2:57:12 am

change rule in .htaccess to

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

Regards,
Sven

Petter Neumann

Monday 12 January 2004 4:18:42 am

Hi ! I did what you supposed, but then I get a
500- Internal Server Error

Here is my .htaccsess file:

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

<FilesMatch
"(index\.php|index2\.php|<FilesMatch
"(index\.php|index2\.php|\.(gif|jpe?g|png|css|jar|js|html|swf))$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule
!\.(gif|css|jpe?g|png|css|jar|js|html|swf)$
index.php

DirectoryIndex index.php

Can you see what's wrong ?

/ Petter

Sven Berend

Monday 12 January 2004 8:59:33 am

Hi,

# .htaccess begin

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

<FilesMatch "(index\.php|index2\.php|\.(gif|jpe?g|png|css|jar|js|html|swf))$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule !\.(gif|css|jpe?g|png|css|jar|js|html|swf)$ index.php

DirectoryIndex index.php

# .htaccess end

Regards,
Sven

Petter Neumann

Tuesday 13 January 2004 1:51:26 am

I tried your .htaccess example,

# .htaccess begin

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

<FilesMatch "(index\.php|index2\.php|\.(gif|jpe?g|png|css|jar|js|html|swf))$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule !\.(gif|css|jpe?g|png|css|jar|js|html|swf)$ index.php

DirectoryIndex index.php

# .htaccess end

,but the result is that when trying to acess index2.php I still get index.php , and also the admin interface is impossible to acess with this .htaccess settings,, I thought it could be problems with Apache 2.x PATHINFO, but this settings is ON on my server.
It must be a simple solution to this, but i'm unable to find it,,

Sven Berend

Tuesday 13 January 2004 5:35:13 am

Hi,

Replace the line

RewriteRule !\.(gif|css|jpe?g|png|css|jar|js|html|swf)$ index.php

with

RewriteRule !index2\.php|\.(gif|css|jpe?g|png|css|jar|js|html|swf)$ index.php

Regards,
Sven

Petter Neumann

Tuesday 13 January 2004 6:05:31 am

Thx Svend. Now my flash with redirection to index2.php works, but I'm unable to connect to the admin page with this .htaccess settings,,,
/ Petter

Sven Berend

Tuesday 13 January 2004 8:56:17 am

Hi,

Replace the line

RewriteRule ...

with

RewriteRule !index\.php|\.(gif|css|jpe?g|png|css|jar|js|html|swf)$ index2.php

Regards,
Sven

Petter Neumann

Tuesday 13 January 2004 10:04:51 am

I did the changes you suggested, and it makes index2.php the default when entering the site, so if I type www.mysite.com I get index2.php displayed, and if I type www.mysite.com/index.php , I get to the flash frontpage and is able to redirect to index2.php .
When trying to acess my siteadmin, I'm redirected to my flash page (index.php) , so it's imposible to acess the site admin, and the wrong file is displayed when entering the site,,,

/ Petter

Sven Berend

Tuesday 13 January 2004 12:02:41 pm

Hi,

check your site.ini.* files for admin url
clear cache
reload site

read more
http://www.ez.no/developer/ez_publish_3/documentation/configuration/configuration/site_access

Regards,
Sven

eZ debug

Timing: Jan 18 2025 10:55:11
Script start
Timing: Jan 18 2025 10:55:11
Module start 'content'
Timing: Jan 18 2025 10:55:11
Module end 'content'
Timing: Jan 18 2025 10:55:12
Script end

Main resources:

Total runtime0.2431 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 587.7109180.8359
Module start 'content' 0.00980.0128 768.5469101.7578
Module end 'content' 0.02260.2204 870.3047530.5234
Script end 0.2430  1,400.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.6571200.0002
Check MTime0.00190.7765200.0001
Mysql Total
Database connection0.00230.954110.0023
Mysqli_queries0.175272.09241410.0012
Looping result0.00170.69651390.0000
Template Total0.219990.510.2199
Template load0.00100.397510.0010
Template processing0.218990.067210.2189
Override
Cache load0.00070.303710.0007
Sytem overhead
Fetch class attribute can translate value0.00160.666510.0016
XML
Image XML parsing0.00030.112810.0003
General
dbfile0.01757.2174200.0009
String conversion0.00000.003230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs