You are here: Re: URL rewrite + htaccess « PHP Programming Language « IT news, forums, messages
Re: URL rewrite + htaccess

Posted by Justin Koivisto on 05/11/05 18:28

frizzle wrote:

> I'm sorry,
> i cheered to early...
>
> Without '[QSA]':
> 'domain.com' gives a 400 error.
> 'domain.com?foo' gives a 400 error.
> 'domain.com/' gives 'index.php'
> 'domain.com/foo' gives 'index.php'
>
> With '[ QSA]'
> 'domain.com' gives a 400 error.
> 'domain.com?foo' gives a 400 error.
> 'domain.com/' gives 'index.php'
> 'domain.com/foo' gives 'index.php&foo' (should'nt that be
> 'index.php?foo' ?)
> 'domain.com/?foo' gives 'index.php&&foo' (should'nt that be
> 'index.php?&foo' ?)
>
> Thanks in advance.
>

Dunno... Try in alt.apache.configuration group, or try changing your method.

For instance, this is similar to what I use:

RewriteRule ^([^/]+)(/([^/]+))?(/([^/]+))?(/([^/]+))?/?$
x.php?v1=$1&v2=$3&v3=$5&v4=$7 [L,NS,QSA]

--
Justin Koivisto - justin@koivi.com
http://koivi.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация