bad request

Discuss practical ways rearrange URLs using mod_rewrite.

Postby Guest » Thu Feb 07, 2002 6:47 am

hi
i'm looking forward to implement a solution similar to the one used in this forum..

i do access dynamic contents of my site
by the syntax
e.g. http://www.domainname.de/?a=13
or http://www.domainname.de/?c=9
it shows articles or categories (eighter 13 or 9 in these examples)

i would like it to be rewritten into
http://www.domainname.de/a13.htm
or http://www.domainname.de/c9.htm etc.etc.

i tried to use
------------------------------------
RewriteEngine on

RewriteCond %{REQUEST_URI} ^/a([0-9]*)
RewriteRule ^(.*) index.php?a=%1 [L]
------------------------------------

but if enabled it just says "bad request"
on the whole site....
Guest
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron