Page 1 sur 1

Probleme rewriting Htaccess

Posté : 23 nov. 2010, 21:36
par nouni
Bonjour,

J'ai un soucie avec mon Htaccess et mon url rewriting.
J'ai acheté un script mais le rewrinting ne marche pas.
J'ai des erreurs sur presque toutes mes pages genre:

http://mondomaine.com/inbox ne fonctionne pas
http://mondomaine.com/inbox.php fonctionne.

Voici mon htaccess:

Code : Tout sélectionner

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^users$ users.php RewriteRule ^login$ login.php RewriteRule ^logout$ logout.php RewriteRule ^log_out$ log_out.php RewriteRule ^forgot$ forgot.php RewriteRule ^manage_gigs$ manage_gigs.php RewriteRule ^manage_orders$ manage_orders.php RewriteRule ^new$ new.php RewriteRule ^suggestions$ index.php RewriteRule ^search$ search.php RewriteRule ^edit$ edit.php RewriteRule ^bookmark$ bookmark.php RewriteRule ^bookmarks$ bookmarks.php RewriteRule ^settings$ settings.php RewriteRule ^balance$ balance.php RewriteRule ^order$ order.php RewriteRule ^orders$ orders.php RewriteRule ^inbox$ inbox.php RewriteRule ^conversations/([^/.]*)?$ conversations.php?u=$1&%{QUERY_STRING} RewriteRule ^upload$ upload.php RewriteRule ^check_new$ check_new.php RewriteRule ^spam$ spam.php RewriteRule ^thank_you$ thank_you.php RewriteRule ^track$ track.php RewriteRule ^send_track$ send_track.php RewriteRule ^confirmemail$ confirmemail.php RewriteRule ^rss$ rss.php RewriteRule ^terms_of_service$ terms_of_service.php RewriteRule ^privacy_policy$ privacy_policy.php RewriteRule ^about$ about.php RewriteRule ^contact$ contact.php RewriteRule ^advertising$ advertising.php RewriteRule ^categories/([^/.]+)?$ cat.php?cid=$1&%{QUERY_STRING} RewriteRule ^user/([^/.]+)?$ user.php?uname=$1&%{QUERY_STRING} RewriteRule ^tags/([^/.]+)/([^/.]+)?$ tags.php?cid=$1&tag=$2&%{QUERY_STRING} RewriteRule ^([^/.]+)/([^/.]+)/([^/.]*)?$ view.php?title=$1&id=$2&%{QUERY_STRING} </IfModule> <IfModule mod_security.c> # Turn off mod_security filtering. SecFilterEngine Off # The below probably isn't needed, # but better safe than sorry. SecFilterScanPOST Off </IfModule>
Merci d'avance pour votre aide.

Re: Probleme rewriting Htaccess

Posté : 23 nov. 2010, 21:42
par stealth35
faut mettre [L] a la fin des lignes

Re: Probleme rewriting Htaccess

Posté : 23 nov. 2010, 23:44
par nouni
A la fin de chaque ligne?

j'ai essayé sur 1 ou 2 et ça ne marche pas

j'ai mis:

RewriteRule ^bookmarks$ bookmarks.php [L]
RewriteRule ^settings$ settings.php [L]

ça ne change rien

Re: Probleme rewriting Htaccess

Posté : 23 nov. 2010, 23:54
par stealth35
faut mettre sur toutes, d'ailleurs y'a moyen d'optimiser tout ca, et y'a des pattern qui se confondent

Re: Probleme rewriting Htaccess

Posté : 28 nov. 2010, 03:20
par nouni
J'ai cherché sur le forum du script et ça a marché en rajoutant ça dans le htaccess:

Options -MultiViews FollowSymLinks