.htaccess is not working

8 posts / 0 new
Last post
#1 Mon, 06/13/2016 - 09:47
hsquare

.htaccess is not working

Hi,

I have to create subdomain but .htaccess is not working because i have to some code in .htaccess so i need to write in this file so please give me solutions for why .htaccess is not working.

Thanks.

Mon, 06/13/2016 - 18:41
Diabolico
Diabolico's picture

Check in httpd.conf if you have under virtualhost *:80 and virtualhost *:443 "All" right after "AllowOverride":

AllowOverride All ...........

If you need to make changes dont forget to restart Apache once you saved the file.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Mon, 06/13/2016 - 22:24
andreychek

Howdy,

Also, what problem is it that you're having exactly?

You can look in $HOME/logs/error_log to see any errors that are showing up.

If you continue having problems, let us know what's in your .htaccess file.

-Eric

Tue, 06/14/2016 - 05:22
hsquare

Hello,

This is my .htaccess code:

RewriteEngine On

RewriteCond $1 !^(indx.php|resources|robots.txt)

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ indx.php?/$1 [L,QSA]

Options -Indexes

I have to call index.php so currently automatic index.php is called.

Sat, 06/18/2016 - 12:05 (Reply to #4)
unborn
unborn's picture

you should have look at htaccess manual as that is not really issue with virtualmin. As you mentioned in your first post, you've done some changed or something to it which means problem is with your code in htaccess file.

Configuring/troubleshooting Debian servers is always great fun

Sat, 06/18/2016 - 13:00 (Reply to #5)
coderinthebox

are you sure it is indx.php instead of index.php, what are you trying to do

Visit me at coderinthebox.com

Tue, 06/14/2016 - 12:07
Diabolico
Diabolico's picture

Did read my previous post and check Apache conf file?

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Wed, 06/15/2016 - 00:27 (Reply to #7)
hsquare

Already add AllowOverride All in httpd.conf file.

Topic locked