PDA

View Full Version : Rewrite


Webimpact
14-02-2005, 11:52
Salve a tutti
dopo aver visitato immumerevoli forum non sono riuscito a trovare risposta a questo mio problema:
Vorrei indicizzare le mie pagine a estensioni .html esempio
da
http://www.miosito.it/modules.php?name=Downloads
a
http://www.miosito.it/Downloads.html

so che bisogna utilizzare il file .htaccess editandolo ma a me non funge
nel mio file .htaccess ci ho scritto questo:

RewriteEngine On
RewriteRule ^index.html index.php [L]

RewriteRule ^topdowns.html modules.php?name=Downloads&d_op=TopRated [L]
RewriteRule ^popdowns.html modules.php?name=Downloads&d_op=MostPopular [L]
RewriteRule ^newdowns.html modules.php?name=Downloads&d_op=NewDownloads [L]
RewriteRule ^downloads.html modules.php?name=Downloads [L]

Son disperato xche non funziona? dove sbaglio?

Stargatto
14-02-2005, 12:35
hai provato a chiedere sui forum di html.it?
loro sono molto esperti in queste cose.
:)

Webimpact
14-02-2005, 12:52
sono gia stato ma l'unica cosa che mi hanno detto č che dovrei arrangiarmi e provare
ora ci sono quasi infatti ho modificato il codice cosė:

RewriteEngine On
RewriteRule ^index.html index.php


#Downloads
RewriteRule ^topdowns.html modules.php?name=Downloads&d_op=TopRated [L]
RewriteRule ^topdowns.html topdowns.html&ratenum=$1&ratetype=$2 [L]
RewriteRule ^popdowns.html modules.php?name=Downloads&d_op=MostPopular [L]
RewriteRule ^popdowns.html popdowns.html&ratenum=$1&ratetype=$2 [L]
RewriteRule ^newdowns.html modules.php?name=Downloads&d_op=NewDownloads [L]
RewriteRule ^newdownsw.html modules.php?name=Downloads&d_op=NewDownloads`"wdownloadshowdays=$1 [L]
RewriteRule ^newdownsd.html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1 [L]
RewriteRule ^downcat.html modules.php?name=Downloads&d_op=viewdownload&cid=$1 [L]
RewriteRule ^downorder.html modules.php?name=Downloads&d_op=viedownload&cid=$1("derby=$2 [L]
RewriteRule ^downfile modules.php?name=Downloads&d_op=getit&lid=$1 [L]
RewriteRule ^downcat.html modules.php?name=Downloads&d_op=viewdownload&cid=$1("derby=$2 [L]
RewriteRule ^downcat.html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2("derby=$3&show=$4 [L]
RewriteRule ^downloads.html modules.php?name=Downloads [L]


Funziona ma solo se richiamo TUTTE le ganine scrivendo il link http://www.webimpact.it/downloads.html invece dovrebbe farlo in automatico :muro: