Discussion in 'General' started by Skprorok, Jun 22, 2009.
Can someone tell me step by step how to allow .htaccess file? I need it for mod-rewrite.
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.
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
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?
No. Mod_rewrite is alaways enabled. But this has nothing to do with your original problem.
my .htaccess file contains this:
RewriteRule ^uzivatel/(.*) /index.php?id=8&user_name=$1 [QSA]
RewriteRule ^(.*)/(.*).xml /index.php?id=$1 [QSA]
Where is error log of the website?
In the log directory of the website.
Log directory? I have only log file there. But it is empty
If the error.log file is empty then there are no errors. Check on the shell with the "ls -la" command if you placed the .htaccess file in the correct directory, the "web" directory.
Yes. It is in the correct "web" directory. i can access it with command
And it isn't "error.log" file but only "log" file in the /var/www/clients/client0/web10/log
And you are sure that this .htaccess works? Have you tested it on another server successfully. In most scripts you have something like "RewriteCond ...." before the rules.
log is a directory and not a file. Go into the log directory, there is the error.log file.
.htaccess works on another servers.
I went to "error.log" file and i found errors:
"RewriteEngine is not allowed here"
Remove the rewrite engine line as the rwrite engine is enabled already. If this wont work, simply copy the whole content of the .htaccess file into the apache directives field of the site and then delete the .htaccess file.
What if it still doesn't work?
And you have tested this exact .htaccess file on another server without doing any modifications in it and you do not receibve any error messages in the error log anymore?
Separate names with a comma.