TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Apache RewriteCond with QueryString

1 pointsby marvwhereover 12 years ago
hey there,<p>i have a little issue with an Apache Redirect.<p>old url: domain.com/q.php?q=test&#38;enter=enter<p>what i want: domain.com/suche/test<p>what i currently use: RewriteCond %{QUERY_STRING} ^q=(.<i>)enter$ [NC] RewriteRule ^q\.php$ /suche/%1? [NC,L,R=301]<p>which results in: domain.com/suche/test&#38;enter<p>why is "^q=(.</i>)&#38;$" not working as a condition?

no comments

no comments