Wednesday 07 January 2004 5:05:07 am
This looks very nice and I am looking for something similar. However on the webhost I am using the ezpublish installation is in a subfolder. When I create the first .htaccess file like this: Options ExecCGI FollowSymLinks Includes MultiViews
<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html))$">
order allow,deny
allow from all </FilesMatch>
RewriteEngine On
RewriteRule ^$ /ezpublish-3.2-3/ [R]
RewriteRule ^/(.*)$ /ezpublish-3.2-3/$1 DirectoryIndex index.php it correctly finds my ezpublis index.php and displays the page, but the url looks like this: http://www.example.com/ezpublish-3.2-3/
The .htaccess file in the ezpublish-3.2-3 folder looks like this:
<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html))$">
order allow,deny
allow from all </FilesMatch> Options ExecCGI FollowSymLinks Includes MultiViews
RewriteEngine on
# we are reached via /ezpublish-3.2-3/ prefix
RewriteBase /ezpublish-3.2-3/
# first we rewrite the root dir to the handling php script
RewriteRule ^$ index.php [L] RewriteRule ^index\.html$ index.php [L]
# strip out the subdirs when the browser requests us from per dir pages RewriteRule ^.+/ezpublish-3.2-3+/.$ $1 [L]
# and now break the rewriting for local files
RewriteRule ^ezpublish-3.2-3\.php.* - [L]
#RewriteRule ^settings\.* - [L]
RewriteRule ^design\.* - [L] RewriteRule ^var\.* - [L]
# anything else is a subdir which gets handled by another php script
RewriteRule !^index\.php.* - [C] RewriteRule (.*) index.php/$1
Where is my error? Could this have something to do with the site.ini.append files? I have tried several settings for SiteURL but what is correct?
SiteURL=example.com
Is what I am using but i have tried several variations with no luck. Help would be appreciated greatly.
|