Hi frizzle
Thanks for the quick help.
I tried out that, but the $1 didnt have any content in it.
But then the redirection to parse.php worked.
So i just used the $_SERVER['REQUEST_URI'] variable to get the url of
the page requested. This has solved my problem.
Thanks again
Arun
frizzle wrote:
> arun.iit DeleteThis @gmail.com wrote:
> > I want to dynamicaly generate pages for my domain name
> >
> > for example,
> >
> > I want to internally redirect
> > mydomain.com/company/new to mydomain.com/parse.php?value=/company/new
> > mydomain.com/anything to mydomain.com/parse.php?value=/anything
> >
> > I want to redirect the complete URI and not any pattern.
> >
> > Plz tell me hw do i form the redirect rule to implement this.
> >
> > Thanks in advance.
>
> RewriteRule ^(parse\.php)$ - [L]
> RewriteRule ^(.*)$ parse.php?value=$1 [L]
>
> Wich would still allow you to request parse.php directly, wich still is
> sort of a problem of mine as well ...
>
> AFAIK it would be better to use index.php instead of parse.php, unless
> parse.php is defined as default index page ... (i believe otherwise
> you'd get an infinite loop)
>
> Frizzle. >> Stay informed about: URL rewrite help - redirect complete URI