Simple redirection

New to mod_rewrite? This is a good place to start.

Simple redirection

Postby lars_4 » Sat Jan 21, 2006 4:30 am

Hello Yall,

I have red the mod_rewrite documentation but i cannot find a simple rewrite rule. :o

http://stats.mydomain.com/ has to become
http://stats.mydomain.com/awstats/

Can someone write down how the rewrite rule should be?

Thanks in advance :D


EDITED: Unlinked URLs
lars_4
 
Posts: 1
Joined: Sat Jan 21, 2006 4:27 am

Postby Mad Mod_Rewriter » Mon Jan 23, 2006 12:00 pm

Hi lars,

I try not to code on demand, maybe someone else has time to, but I don't. If you have some code you are working with that won't function properly I am happy to help you figure out how/why it's not working. There is some basic information about Mod_Rewrite Here if you have not found it yet.

Justin

BTW There is really no 'one-size-fits-all' code for most rewrites =).
Mad Mod_Rewriter
 
Posts: 26
Joined: Thu Jan 12, 2006 1:53 pm
Location: The Office

I am to dumb

Postby evelinbinder » Thu Feb 04, 2010 10:42 am

Could someone please help lars_4, because a have the same problem.
I studied the documentations but I don't get it.

In my case I would like to replace a get-parameter:
from : http://myserver/hello/hello.cgi?a=1
to : http://myserver/hello/hello.cgi?b=2

I am to dumb, sorry :-)
evelinbinder
 
Posts: 1
Joined: Thu Feb 04, 2010 10:20 am


Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron