Author
|
Message
|
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
|