homepage Welcome to WebmasterWorld Guest from 54.167.173.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess in local (on my own pc)
htaccess local windows
gb76




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

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




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

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




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

Thanks a lot Jim,

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

Soon,
Gilles.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved