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

David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

Tue Feb 13, 2018 4:41 pm

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.
User avatar
Edi
Site Admin
Posts: 1155
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Tue Feb 13, 2018 5:13 pm

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?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

Tue Feb 13, 2018 7:46 pm

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
User avatar
Edi
Site Admin
Posts: 1155
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Tue Feb 13, 2018 8:11 pm

You can move Bludit (the content of the directory /bludit) to the directory example.com/blog.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

Wed Feb 14, 2018 2:21 am

When I do that, only the main page shows. Clicking any link produces a 404 error.
User avatar
Edi
Site Admin
Posts: 1155
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Feb 14, 2018 11:23 am

Is the module mod_rewrite enabled?

Is there a file .htaccess in the root directory? If yes, what directives are given?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

Wed Feb 14, 2018 2:37 pm

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]
User avatar
Edi
Site Admin
Posts: 1155
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Feb 14, 2018 3:00 pm

In the root directory above the directory with Bludit?

In this case you have to exclude the directory /blog.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

Wed Feb 14, 2018 5:57 pm

Yes, that is in the root directory above the blog folder.

How do I exclude the blog folder? Thank you.
User avatar
Edi
Site Admin
Posts: 1155
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Feb 14, 2018 11:16 pm

I tested it on my server. It should work without excluding the directory.

Is mod_rewrite enabled on your server?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply