Help 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:45 ] [ ID #1914001 ]

Re: Help about mod_rewrite........

Michele Di Benedetto wrote:
> 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
>
This isn't a PHP question. Try an appropriate newsgroup such as
alt.apache.configuration.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Di, 22 Januar 2008 14:50 ] [ ID #1914002 ]

Re: Help about mod_rewrite........

On Tue, 22 Jan 2008 14:45:02 +0100, Michele Di Benedetto
<mikydibe [at] gmail.com> wrote:

> 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

ask in alt.apache.configuration
... and the rule appears to be the reverse of what you claim to want.
--
Rik Wasmus
luiheidsgoeroe [ Di, 22 Januar 2008 14:52 ] [ ID #1914003 ]

Re: Help about mod_rewrite........

On 22 Gen, 14:52, "Rik Wasmus" <luiheidsgoe... [at] hotmail.com> wrote:
> On Tue, 22 Jan 2008 14:45:02 +0100, Michele Di Benedetto
>
> <mikyd... [at] gmail.com> wrote:
> > 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
>
> ask in alt.apache.configuration
> .. and the rule appears to be the reverse of what you claim to want.
> --
> Rik Wasmus

ok......thanks a lot the same!
Michele Di Benedetto [ Di, 22 Januar 2008 15:01 ] [ ID #1914004 ]
PHP » comp.lang.php » Help about mod_rewrite........

Vorheriges Thema: Parallel Scripts
Nächstes Thema: Background Refresh