This is a discussion on htaccess and RewriteRule within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, i would like to create an htaccess file that permit to me to replace: become viewricetta.php?id_fls=152 ---------------&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, i would like to create an htaccess file that permit to me to replace:
become viewricetta.php?id_fls=152 ---------------> ricetta_in_vetrina/ricetta_152.php where viewricetta.php is in the root directory. I have tried several times without success, may u help me please? Thank u very much. |
|
|||
|
"Davide Bianchi" wrote: > > Something like > RewriteRule ^/viewricetta.php?id_fls=(.*)$ ..../ricetta_$1.php > > Davide I tried to use this lines into the htaccess file: RewriteEngine on RewriteRule ^/viewricetta.php?id_fls=(.*)$ http://www.ricettenostrane.it/ricetta_in_vetrina/$1.php [L,R] but it seems to be wrong. I don't know why! I also say that i have created the htaccess file and i put it into the root directory. May you help me? Thx |
|
|||
|
"Davide Bianchi" wrote: > Is your .htaccess file used? Did you read the Apache FAQ where > he says "my .htaccess file is ignored"? Tryed enabling the rewrite > log and see what's happening? > > Davide The problem is that my site is on Aruba.it server and i need contacting them in order to ask if 'AllowOverride All' is enabled into the access.conf file and if the rewrite log in enabled. Thx |
|
|||
|
"Davide Bianchi" wrote: > Is your .htaccess file used? Did you read the Apache FAQ where > he says "my .htaccess file is ignored"? Tryed enabling the rewrite > log and see what's happening? > > Davide I realized that i have another .htaccess into a protect directory on my website, so Override All is enabled. The problem should be in the code lines: RewriteEngine on RewriteRule ^/viewricetta.php?id_fls=(.*)$ http://www.ricettenostrane.it/ricetta_in_vetrina/$1.php [L] Thx |
| Thread Tools | |
| Display Modes | |
|
|