i have "successfully" deployed bludit to our dev site as alias /blog. there were some hickups with .htaccess and web.config, but i think i sorted it out.
everything loads ok, except when adding new post. the browser calls GET to
%22%22 ("")and
%20+%20filename%20+%20 ( + filename + ).
as bludit resides under http://mainserver.com/blog the calls are made to
http://mainserver.com/%22%22 and
http://mainserver.com/blog/admin/'%20+% ... ame%20+%20'.
referer is http://mainserver.com/blog/admin/new-post
i think that the problem might be with some js calls, but i didn't digg that deep into the code.
my vhost config for local dev:
Code: Select all
<VirtualHost *:80>
DocumentRoot c:/wamp64/www/devel/webroot
ServerName mainserver.dev
#Options Indexes FollowSymLinks MultiViews
#AllowOverride All
#Require all granted
<IfModule alias_module>
Alias "/blog" "c:/wamp64/www/devel/blog/"
</IfModule>
<Directory "c:/wamp64/www/devel/blog">
DirectoryIndex index.php
RewriteEngine on
RewriteBase /blog/
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php [PT,L]
</Directory>
<Directory c:/wamp64/www/devel>
# use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# use index.php as index file
DirectoryIndex index.php
# ...other settings...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Order allow,deny
allow from all
</IfModule>
</Directory>
ErrorLog "error_devel.log"
CustomLog "access_devel.log" common
</VirtualHost>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<remove fileExtension=".ttf" />
<mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
<rewrite>
<rules>
<rule name="Blogging system protect content" stopProcessing="true">
<match url="^blog/bl-content/(.*)\.txt$"/>
<action type="None"/>
</rule>
<rule name="Blogging system assets" stopProcessing="true">
<match url="^blog/(bl-kernel|bl-themes|bl-plugins|bl-languages)(.*)"/>
<action type="Rewrite" url="blog/{R:1}{R:2}" appendQueryString="true"/>
</rule>
<rule name="Blogging system" stopProcessing="true">
<match url="^blog(.*)$" ignoreCase="false"/>
<action type="Rewrite" url="blog/index.php" appendQueryString="true"/>
</rule>
<rule name="Exclude direct access to webroot/*" stopProcessing="true">
<match url="^webroot/(.*)$" ignoreCase="false"/>
<action type="None"/>
</rule>
<rule name="Rewrite routed access to assets(img, css, files, js, favicon)" stopProcessing="true">
<match url="^(img|css|files|js|fonts|templates|adminer|info|roboto|favicon.ico)(.*)$"/>
<action type="Rewrite" url="webroot/{R:1}{R:2}" appendQueryString="false"/>
</rule>
<rule name="Rewrite requested file/folder to index.php" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false"/>
<action type="Rewrite" url="index.php" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>