Welcome to WebmasterWorld Guest from 54.147.10.72

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess in local (on my own pc)

htaccess local windows

     

gb76

5:31 am on Oct 29, 2003 (gmt 0)

10+ Year Member



Hello all,

Nice forum ; I hope i will be helped :)

First, sorry for my broken english (french...)
Two : i need some advice (i'm a newbie)

I have a site managed by a CMS (french cms : artiphp) who give me huge and not friendly url, so i'm working with .htaccess and mod_rewrite to get better url. Ok?

For easier testing i want to use the htaccess on my own pc, in the local test version of my site. I want to test my regex and protect my distant site.

My OS is W2k, the server is the latest apache (mod_rewrite on) with recent php. So, I have a working .htaccess (successful on my distant site) but not working in local : a simple redirection doesn't work (but the same redirection works fine on my distant site). The local htaccess is in the root of my site : in a folder named 'mysite', and Apache knows that here is the root of my site.

Any suggestion? Why this htaccess works fine on my distant site and failed at home?

I hope you understand me, lol :)

Have a nice day,
Gilles.

jdMorgan

4:35 pm on Oct 29, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



gb76,

Welcome to WebmasterWorld [webmasterworld.com]!

mod_rewrite requires some additional settings in order to work.

You must have AllowOverride FileInfo Limit or AllowOverride All in the <directory> container for your local site in httpd.conf. Also, you may want to have Options FollowSymLinks in the <directory> container.

Alternately, you must have AllowOverride FileInfo Limit Options or AllowOverride All in httpd.conf and Options +FollowSymLinks in .htaccess, before the RewriteEngine on directive.

AllowOverride FileInfo grants permission for .htaccess to use mod_rewrite to change pathnames.
AllowOverride Limit grants permission to .htaccess to use mod_access to control file access.
AllowOverride Options grants permission to use Options directives in .htaccess.
Options FollowSymLinks is required to use mod_rewrite.

See the Apache documentation [httpd.apache.org] for more information.

Jim

gb76

7:31 pm on Oct 29, 2003 (gmt 0)

10+ Year Member



Thanks a lot Jim,

I'm just reading your answer : so I test your suggestion quickly and i come back.

Soon,
Gilles.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month