htaccess and RewriteRule

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 ---------------&...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2005
Massimiliano
 
Posts: n/a
Default htaccess and RewriteRule

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.


  #2 (permalink)  
Old 04-26-2005
Massimiliano
 
Posts: n/a
Default Re: htaccess and RewriteRule


"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


  #3 (permalink)  
Old 04-26-2005
Massimiliano
 
Posts: n/a
Default Re: htaccess and RewriteRule


"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


  #4 (permalink)  
Old 04-26-2005
Massimiliano
 
Posts: n/a
Default Re: htaccess and RewriteRule


"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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0