Page 1 of 2

[Solved] How do I put Bludit into a Blog folder?

Posted: Tue Feb 13, 2018 4:41 pm
by David
I am working in dev on MAMP.

I got Bludit to work inside my blog folder at localhost/blog/bludit

I want to use Bludit for the blog only, the rest of the site will be static HTML.

How do I configure it to work in localhost/blog/

I have searched this forum but did not find instructions.

Thank you.

Re: How do I put Bludit into a Blog folder?

Posted: Tue Feb 13, 2018 5:13 pm
by Edi
David wrote: Tue Feb 13, 2018 4:41 pm I want to use Bludit for the blog only, the rest of the site will be static HTML.
What do you mean with "static HTML"? Static pages of the types .htm, .html or .php or static content in Bludit as addition to the blog?

Re: How do I put Bludit into a Blog folder?

Posted: Tue Feb 13, 2018 7:46 pm
by David
The rest of the site is hard-coded as .html files.

I want to run Bludit as a blog inside the blog folder only.

example.com/blog is where the Bludit install will run from.

Right now it's example.com/blog/bludit

Re: How do I put Bludit into a Blog folder?

Posted: Tue Feb 13, 2018 8:11 pm
by Edi
You can move Bludit (the content of the directory /bludit) to the directory example.com/blog.

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 2:21 am
by David
When I do that, only the main page shows. Clicking any link produces a 404 error.

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 11:23 am
by Edi
Is the module mod_rewrite enabled?

Is there a file .htaccess in the root directory? If yes, what directives are given?

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 2:37 pm
by David
Yes. This is what is in my .htaccess file:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 3:00 pm
by Edi
In the root directory above the directory with Bludit?

In this case you have to exclude the directory /blog.

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 5:57 pm
by David
Yes, that is in the root directory above the blog folder.

How do I exclude the blog folder? Thank you.

Re: How do I put Bludit into a Blog folder?

Posted: Wed Feb 14, 2018 11:16 pm
by Edi
I tested it on my server. It should work without excluding the directory.

Is mod_rewrite enabled on your server?