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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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" <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 |
|
|||
|
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! |
|
|||
|
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) |
|
|||
|
"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 |
|
|||
|
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) |