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

David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can move Bludit (the content of the directory /bludit) to the directory example.com/blog.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 pm

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

Is the module mod_rewrite enabled?

Is there a file .htaccess in the root directory? If yes, what directives are given?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

In the root directory above the directory with Bludit?

In this case you have to exclude the directory /blog.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
David
Jr. Bludit
Posts: 8
Joined: Tue Feb 13, 2018 4:35 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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

Is mod_rewrite enabled on your server?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply