Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: unable to mod_rewrite in .htaccess |
|
Author |
|
verb5
Joined: 02 Dec 2017 Posts: 1
|
Posted: Sat 02 Dec '17 16:03 Post subject: unable to mod_rewrite in .htaccess |
|
|
Hello everyone
I am using freebsd 6.0 and apache 1.3 where i would like to rewrite my links with .htaccess file.Here is the file content:
RewriteEngine On
RewriteRule ^tiktak(.*)$ ftp/tst/pro.cgi/$1 [QSA,L]
I would like to rewrite links http://ip/tiktak to http://ip/ftp/tst/pro.cgi
It looks as apache doesn't read the htaccess file. Also i have tried to set the same config in httpd.conf like this :
<Directory "/usr/local/www/data">
Options Indexes FollowSymLinks
AllowOverride All
RewriteEngine On
RewriteRule "^tiktak(.*)$" "ftp/tst/pro.cgi/$1" [QSA,L]
</Directory>
and this one works ok. So i appreciate any idea of why apache doesn;t read htaccess . Thank you |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|