HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   How to allow .htaccess file (http://www.howtoforge.com/forums/showthread.php?t=36889)

Skprorok 22nd June 2009 12:42

How to allow .htaccess file
 
Can someone tell me step by step how to allow .htaccess file? I need it for mod-rewrite.

Thank you:)

till 22nd June 2009 13:37

This is allowed and configured by default, no changes nescessary.

Skprorok 22nd June 2009 19:06

Quote:

Originally Posted by till (Post 195903)
This is allowed and configured by default, no changes nescessary.

Thank for answer, but when I copy .htaccess file to /web10/ folder and refresh page, I get Internal server error.

till 22nd June 2009 19:07

Then check the exact error message in the error message of the logfile. I'am sure that your .htaccess file contains other settings beside mod_rewrite rules.

Skprorok 27th June 2009 10:14

Quote:

Originally Posted by till (Post 196029)
Then check the exact error message in the error message of the logfile. I'am sure that your .htaccess file contains other settings beside mod_rewrite rules.

But when i copy .htaccess to /web10/web/ directory, I can't see it in the dir. It will disappear.

.htaccess file contains only mod_rewrite rules.s

till 27th June 2009 11:05

The is there and uploaded correctly but your FTP client or pureftpd hides hidden files (files that start with a dot). Take a look at the settings of the ftp client and the pureftpd configuration file.

Skprorok 27th June 2009 11:21

Quote:

Originally Posted by till (Post 196615)
The is there and uploaded correctly but your FTP client or pureftpd hides hidden files (files that start with a dot). Take a look at the settings of the ftp client and the pureftpd configuration file.

Mustn't I allow mod-rewrite in Apache directives when I'm adding a website?

till 27th June 2009 11:23

Quote:

Originally Posted by Skprorok (Post 196623)
Mustn't I allow mod-rewrite in Apache directives when I'm adding a website?

No. Mod_rewrite is alaways enabled. But this has nothing to do with your original problem.

Skprorok 27th June 2009 11:37

Quote:

Originally Posted by till (Post 196627)
No. Mod_rewrite is alaways enabled. But this has nothing to do with your original problem.

my .htaccess file contains this:

RewriteEngine On
RewriteRule ^uzivatel/(.*) /index.php?id=8&user_name=$1 [QSA]
RewriteRule ^(.*)/(.*).xml /index.php?id=$1 [QSA]

Where is error log of the website?

till 27th June 2009 11:38

In the log directory of the website.


All times are GMT +2. The time now is 18:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.