working with .htacess

Post Reply
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

how to edit htaccess to be allowed to work witth other folders?

like i cannot access forum folder , keep giving 404 not found so , how to add permession to forum folder inside the htaccess
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

almost 3 weeks and no one has helped ?
could someone just take a look please?
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:

Sorry, I wasn't aware of the post! :oops:

Can you please post your .htaccess.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

amr wrote:almost 3 weeks and no one has helped ?
could someone just take a look please?
Hi,
you can search the solution on Google or in other forums because is a subject about Apache webserver.

Here is a simple search on Google:
https://www.google.com.ar/search?num=40 ... =733&dpr=2

About the Apache htaccess:
https://httpd.apache.org/docs/current/h ... ccess.html

Stackoverflow nice forum:
http://stackoverflow.com/search?q=httaccess

Search on the forum, may be there are some user who has the same problem:
search.php?keywords=htaccess&terms=all& ... mit=Search

Regards
Diego
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

Dear @Eid and @Diego

ive tried everything ,all i need to do is add a folder forum into the bludit .htaccess file
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:

Yes, I understand. But can you please post the .htaccess you are using at the moment.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>

# Enable rewrite rules
RewriteEngine on

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

</IfModule>
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

try with this htaccess, check the name of your forum folder.

Code: Select all

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>

# Enable rewrite rules
RewriteEngine on

# Forum
RewriteRule ^forum /forum/index.php [L]

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

</IfModule>
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

thanks ! worked fine
Post Reply