help please about mod_rewrite

This is a discussion on help please about mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello...i needed suggestions about to redirect all user requesting something like www.mysite.it/en/page.php to www....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-22-2008
Michele Di Benedetto
 
Posts: n/a
Default 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
  #2 (permalink)  
Old 01-22-2008
HansH
 
Posts: n/a
Default Re: help please about mod_rewrite


"Michele Di Benedetto" <mikydibe@gmail.com> schreef in bericht
news:f5542ae7-3953-4bdb-b05a-703ba63a67c3@m34g2000hsb.googlegroups.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


  #3 (permalink)  
Old 01-22-2008
Michele Di Benedetto
 
Posts: n/a
Default Re: help please about mod_rewrite

On 22 Gen, 15:37, "HansH" <ha...@invalid.invalid> wrote:
> "Michele Di Benedetto" <mikyd...@gmail.com> schreef in berichtnews:f5542ae7-3953-4bdb-b05a-703ba63a67c3@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!
  #4 (permalink)  
Old 01-22-2008
Kees Nuyt
 
Posts: n/a
Default Re: help please about mod_rewrite

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

>On 22 Gen, 15:37, "HansH" <ha...@invalid.invalid> wrote:
>> "Michele Di Benedetto" <mikyd...@gmail.com> schreef in berichtnews:f5542ae7-3953-4bdb-b05a-703ba63a67c3@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)
  #5 (permalink)  
Old 01-22-2008
HansH
 
Posts: n/a
Default Re: help please about mod_rewrite

"Kees Nuyt" <k.nuyt@nospam.demon.nl> schreef in bericht
news:9v9cp39vt7jo9ps84pt52kv3slschtnpk2@dim53.demo n.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...ml#rewriterule

or don't point at all.

HansH


  #6 (permalink)  
Old 01-22-2008
Kees Nuyt
 
Posts: n/a
Default Re: help please about mod_rewrite

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

>"Kees Nuyt" <k.nuyt@nospam.demon.nl> schreef in bericht
>news:9v9cp39vt7jo9ps84pt52kv3slschtnpk2@dim53.dem on.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...ml#rewriterule
>
>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)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0