[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Ang. [OT] mod_rewrite



debian-user-swedish-request@lists.debian.org wrote on 2006-09-07 00:07:48:

> Godkväll!
> Hur jag än försöker får jag inte mod_rewrite att fungera.
>
> Vad jag kan se är modulen laddad OK.
> Jag har provat att skriva in regler i både apache2:s konfigurationsfil
> och i .htaccess-fil utan skillnad. Inte ens en 500:a krasch.
>
> Och jag använder detta för att testa:
> RewriteEngine on
> RewriteRule ^old\.html$ new.html
>
> apache2 -l
> Compiled in modules:
>   core.c
>   mod_access.c
>   mod_auth.c
>   mod_log_config.c
>   mod_logio.c
>   mod_env.c
>   mod_setenvif.c
>   prefork.c
>   http_core.c
>   mod_mime.c
>   mod_status.c
>   mod_autoindex.c
>   mod_negotiation.c
>   mod_dir.c
>   mod_alias.c
>   mod_so.c
>
>
> /etc/apache2/mods-enabled:
> cgi.load  php4.conf  php4.load  rewrite.load  userdir.conf  userdir.load
>
> # a2enmod
> Which module would you like to enable?
> Your choices are: actions asis auth_anon auth_dbm auth_digest auth_ldap
> cache cern_meta cgid cgi dav_fs dav deflate disk_cache expires
> ext_filter file_cache headers imap include info ldap mem_cache
> mime_magic php4 proxy_connect proxy_ftp proxy_http proxy rewrite
> speling ssl suexec unique_id userdir usertrack vhost_alias
>
> Module name?
> rewrite This module is already enabled!
>
>
> --
> To UNSUBSCRIBE, email to debian-user-swedish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

Hej,

Jag brukar slå på loggningen för att se om mina rewrite regler gör som jag vill.

lägg till detta din conf

RewriteLog file-path
RewriteLogLevel Level

loglevel 0 är default och allt över 2 får anses vara debug.

Lycka till :)

/Amir


Reply to: