RewriteRule

Hi, all

I´m trying to create "de belles adresses" with .htaccess, I want
"http://www…/deondevem", so I add :

################ REGLAGES PERSONNALISES ######################
RewriteRule ^deondevem$
spip.php?page=rubrique&id_rubrique=$12 [QSA,L]

is it wrong? (it doesn´t seem to work)

thank you im advance
tereza

RewriteRule ^deondevem$
spip.php?page=rubrique&id_rubrique=12 [QSA,L]

the '$' caractere indicate a substitution with pattern matching blocks
like ([0-9]+) [it's a regular expression between parenthesis].
ex: RewriteRule ^deondevem/([0-9]+)/[0-9]+)\.html$
spip.php?page=test&id_rubrique=$1&id_auteur=$2 [QSA,L]

$1 is replaced by the first element
$2 by the second

Note that you MUST place your rewriteRule before the SPIP urls block
(in "reglages personnalises" for ex.)

.Gilles
--
2007/7/26, Tereza Loparic <telopa@gmail.com>:

Hi, all

I´m trying to create "de belles adresses" with .htaccess, I want
"http://www…/deondevem", so I add :

################ REGLAGES PERSONNALISES ######################
RewriteRule ^deondevem$
spip.php?page=rubrique&id_rubrique=$12 [QSA,L]

is it wrong? (it doesn´t seem to work)

thank you im advance
tereza
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi, Gilles

thank you. But it still doesn´t work and I feel I don´t quite
understand your tip... :-/ so let me explain better:

As you said, I change:
"RewriteRule ^deondevem$ spip.php?page=rubrique&id_rubrique=$12 [QSA,L]"

per:
"RewriteRule ^deondevem$ spip.php?page=rubrique&id_rubrique=12 [QSA,L]"

just after:
"################ REGLAGES PERSONNALISES ######################
# Inscrivez ci-dessous vos reglages supplementaires"

Than I do the upload and go check at:
http://www.tvpinguim.com.br/spip/deondevem

and the answer is
"Not Found
The requested URL /spip/deondevem was not found on this server."

and the page I want is
http://www.tvpinguim.com.br/spip/spip.php?rubrique12

can you still help? thank you.
tereza

On 7/25/07, Gilles Vincent <gilles.vincent@gmail.com> wrote:

RewriteRule ^deondevem$
spip.php?page=rubrique&id_rubrique=12 [QSA,L]

the '$' caractere indicate a substitution with pattern matching blocks
like ([0-9]+) [it's a regular expression between parenthesis].
ex: RewriteRule ^deondevem/([0-9]+)/[0-9]+)\.html$
spip.php?page=test&id_rubrique=$1&id_auteur=$2 [QSA,L]

$1 is replaced by the first element
$2 by the second

Note that you MUST place your rewriteRule before the SPIP urls block
(in "reglages personnalises" for ex.)

.Gilles
--
2007/7/26, Tereza Loparic <telopa@gmail.com>:
> Hi, all
>
> I´m trying to create "de belles adresses" with .htaccess, I want
> "http://www…/deondevem", so I add :
>
> ################ REGLAGES PERSONNALISES ######################
> RewriteRule ^deondevem$
> spip.php?page=rubrique&id_rubrique=$12 [QSA,L]
>
> is it wrong? (it doesn´t seem to work)
>
> thank you im advance
> tereza
> _______________________________________________
> spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
>

--

--------------------------
Abelhaweb design
(11) 3726-5577

Tereza Loparic wrote:

"Not Found
The requested URL /spip/deondevem was not found on this server."

Hello,

1) Is the rewrite module installed on Apache ?

2) Does the .htaccess file contain the prior command:
   RewriteEngine On

?

Paolo

Hi!

On 7/26/07, Paolo <paolo2@taize.fr> wrote:

Tereza Loparic wrote:
> "Not Found
> The requested URL /spip/deondevem was not found on this server."

Hello,

1) Is the rewrite module installed on Apache ?

I have no idea. It´s the first time I hear about this... is it a
default setting? How can I know that? I have shell access to my space,
but it´s not very easy to reach the admin. Is there a easy way to find
it out?

2) Does the .htaccess file contain the prior command:
   RewriteEngine On

yes!

Hi,

> 1) Is the rewrite module installed on Apache ?

I have no idea. It´s the first time I hear about this... is it a

To test if mod_rewrite id available, just create a file foo.txt
and create a file .htaccess like this :

RewriteEngine on
RewriteBase /
RewriteRule ^bar$ foo.txt [R=permanent]

the url http://www.tvpinguim.com.br/bar should show the content of foo.txt

Than I do the upload and go check at:
http://www.tvpinguim.com.br/spip/deondevem

and the answer is "Not Found
The requested URL /spip/deondevem was not found on this server."

Maybe the RewriteBase is missing or not good : you can test it with
the previous .htaccess for ex.
One option may be to indicate
RewriteBase /spip

(in the default spip htaccess.txt, the option RewriteBase is disabled)

Hope it helps,

.Gilles