help please about mod_rewrite

Hello...i needed suggestions about to redirect all user requesting
something like www.mysite.it/en/page.php to www.mysite.it/uk/page.php
using an .htacces file with the following code but it doesn't work!
Can anyone help me?

file .htacces contents >>>

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteRule ^uk/(.*)$ en/$1
Michele Di Benedetto [ Di, 22 Januar 2008 14:36 ] [ ID #1913882 ]

Re: help please about mod_rewrite

"Michele Di Benedetto" <mikydibe [at] gmail.com> schreef in bericht
news:f5542ae7-3953-4bdb-b05a-703ba63a67c3 [at] m34g2000hsb.google groups.com...
> Hello...i needed suggestions about to redirect all user requesting
> something like www.mysite.it/en/page.php to www.mysite.it/uk/page.php
> using an .htacces file with the following code but it doesn't work!
> Can anyone help me?
>
> file .htacces contents >>>
>
> RewriteEngine On
> Options +FollowSymlinks
> RewriteBase /
>
> RewriteRule ^uk/(.*)$ en/$1
ENglish to UK is the ovtherway around ...
RewriteRule ^en/(.*)$ uk/$1

HansH
HansH [ Di, 22 Januar 2008 15:37 ] [ ID #1913884 ]

Re: help please about mod_rewrite

On 22 Gen, 15:37, "HansH" <ha... [at] invalid.invalid> wrote:
> "Michele Di Benedetto" <mikyd... [at] gmail.com> schreef in berichtnews:f5542ae7-3953-4bdb-b05a-703ba63a67c3 [at] m34g2000hsb .googlegroups.com...> Hello...i needed suggestions about to redirect all user requesting
> > something likewww.mysite.it/en/page.phptowww.mysite.it/uk/page.php
> > using an .htacces file with the following code but it doesn't work!
> > Can anyone help me?
>
> > file .htacces contents >>>
>
> > RewriteEngine On
> > Options +FollowSymlinks
> > RewriteBase /
>
> > RewriteRule ^uk/(.*)$ en/$1
>
> ENglish to UK is the ovtherway around ...
> RewriteRule ^en/(.*)$ uk/$1
>
> HansH

Thanks a lot my friend..............could you please post me a link
with a really complete tutorial about mod_rewrite or a file to
download ? If you can't thanks the same for your support! BYE!
Michele Di Benedetto [ Di, 22 Januar 2008 16:38 ] [ ID #1913885 ]

Re: help please about mod_rewrite

On Tue, 22 Jan 2008 07:38:12 -0800 (PST), Michele Di
Benedetto <mikydibe [at] gmail.com> wrote:

>On 22 Gen, 15:37, "HansH" <ha... [at] invalid.invalid> wrote:
>> "Michele Di Benedetto" <mikyd... [at] gmail.com> schreef in berichtnews:f5542ae7-3953-4bdb-b05a-703ba63a67c3 [at] m34g2000hsb .googlegroups.com...> Hello...i needed suggestions about to redirect all user requesting
>> > something likewww.mysite.it/en/page.phptowww.mysite.it/uk/page.php
>> > using an .htacces file with the following code but it doesn't work!
>> > Can anyone help me?
>>
>> > file .htacces contents >>>
>>
>> > RewriteEngine On
>> > Options +FollowSymlinks
>> > RewriteBase /
>>
>> > RewriteRule ^uk/(.*)$ en/$1
>>
>> ENglish to UK is the ovtherway around ...
>> RewriteRule ^en/(.*)$ uk/$1
>>
>> HansH
>
>Thanks a lot my friend..............could you please post me a link
>with a really complete tutorial about mod_rewrite or a file to
>download ? If you can't thanks the same for your support! BYE!

Google for:
apache rewrite tutorial
--
( Kees
)
c[_] May your life be filled with experiences. (#119)
Kees Nuyt [ Di, 22 Januar 2008 18:31 ] [ ID #1913886 ]

Re: help please about mod_rewrite

"Kees Nuyt" <k.nuyt [at] nospam.demon.nl> schreef in bericht
news:9v9cp39vt7jo9ps84pt52kv3slschtnpk2 [at] dim53.demon.nl...
>>..............could you please post me a link
>>with a really complete tutorial about mod_rewrite or a file to
>>download ? If you can't thanks the same for your support! BYE!
>
> Google for:
> apache rewrite tutorial

Either at least point to
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewrit erule

or don't point at all.

HansH
HansH [ Di, 22 Januar 2008 21:46 ] [ ID #1913889 ]

Re: help please about mod_rewrite

On Tue, 22 Jan 2008 21:46:35 +0100, "HansH"
<hansh [at] invalid.invalid> wrote:

>"Kees Nuyt" <k.nuyt [at] nospam.demon.nl> schreef in bericht
>news:9v9cp39vt7jo9ps84pt52kv3slschtnpk2 [at] dim53.demon.nl...
>>>..............could you please post me a link
>>>with a really complete tutorial about mod_rewrite or a file to
>>>download ? If you can't thanks the same for your support! BYE!
>>
>> Google for:
>> apache rewrite tutorial
>
>Either at least point to
>http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewri terule
>
>or don't point at all.
>
>HansH

That's a link on the Apache doc page the third hit points
to. OP is not a toddler.
--
( Kees
)
c[_] 'Tis an ill wind that blows no minds. (#62)
Kees Nuyt [ Di, 22 Januar 2008 23:55 ] [ ID #1913890 ]
Webserver » alt.apache.configuration » help please about mod_rewrite

Vorheriges Thema: CacheIgnoreCacheControl based on user?
Nächstes Thema: SSL Certificate Error