mod_rewrite, streck till snedstreck

Visa första olästa
Ämnesverktyg
Visa huvudforum
Visningsalternativ
Oläst 2008-06-11, 21:10 #1
alejandr0alejandr0 är inte uppkopplad
Medlem
Reg.datum: Apr 2007
Inlägg: 108
Hej! Sätter upp mod_rewrite på ett par gamlare webbplatser som jag skall snygga till lite. Har nu fått bort .php ur adresserna men hur får jag - att bli /. - Finns i filnamnen, alltså /hej-hejdå.php ska bli hej/hejdå.

Förstår ni :P
alejandr0 är inte uppkopplad
Oläst 2008-06-11, 21:25 #2
fabianfabian är inte uppkopplad
Klarade millennium-buggen
fabians avatar
Reg.datum: Jul 2004
Inlägg: 2 162
Menar du inte att:
hej/hejdå.php
skall bli
hej-hejdå.php
?
fabian är inte uppkopplad
Oläst 2008-06-11, 21:28 #3
alejandr0alejandr0 är inte uppkopplad
Medlem
Reg.datum: Apr 2007
Inlägg: 108
Citat:
Originally posted by fabian@Jun 11 2008, 20:25
Menar du inte att:
hej/hejdå.php
skall bli
hej-hejdå.php
?


Nej tvärtom Big Grin
alejandr0 är inte uppkopplad
Oläst 2008-06-11, 21:47 #4
OscaripOscarip är inte uppkopplad
Medlem
Reg.datum: Apr 2008
Inlägg: 69
Hej!

Tyvärr kan jag inte hjälpa dig med just ditt problem, men vore det inte lättare att göra såhär?:

RewriteRule ^category/pagename/?$ filenphp [QSA,L]

mvh
Oscarip är inte uppkopplad
Oläst 2008-06-11, 22:15 #5
gsocgsoc är inte uppkopplad
Mycket flitig postare
gsocs avatar
Reg.datum: Jun 2007
Inlägg: 568
rewriterule ^(.*)-(.*).php hxtp://asd.se/$1/$2 [r=301,nc]
gsoc är inte uppkopplad
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)