rewrite rule not working

This is a discussion on rewrite rule not working within the Apache Web Server forums, part of the Web Server and Related Forums category; I need to rewrite urls like /index.php?option=com_wrapper&wrap=test&Itemid=32 into something like /muppy-...


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 08-28-2004
Muppy
 
Posts: n/a
Default rewrite rule not working

I need to rewrite urls like

/index.php?option=com_wrapper&wrap=test&Itemid=32

into something like

/muppy-test-32.htm

i've tried to use this rewrite rule:

RewriteRule muppy-([^/]+)-([^/]+).htm
index.php?option=com_wrapper&wrap=$1&Itemid=$2 [L]

but it doesn't works: it gives me a 404 error

Any suggestion?
Thanks
Andrea




  #2 (permalink)  
Old 09-04-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: rewrite rule not working

*** Muppy escribió/wrote (Sat, 28 Aug 2004 10:43:43 GMT):
> I need to rewrite urls like
>
> /index.php?option=com_wrapper&wrap=test&Itemid=32
>
> into something like
>
> /muppy-test-32.htm
>
> i've tried to use this rewrite rule:
>
> RewriteRule muppy-([^/]+)-([^/]+).htm
> index.php?option=com_wrapper&wrap=$1&Itemid=$2 [L]


Try:

muppy-([^-]+)-([0-9]+)\.htm

And, if possible, check error_log file for further info.

--
--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- http://www.demogracia.com (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 09:49 AM.


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