Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

help please about mod_rewrite

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  iis 6 installing 5.25 php  
Author Message
Michele Di Benedetto

External


Since: Jan 22, 2008
Posts: 2



(Msg. 1) Posted: Tue Jan 22, 2008 5:36 am
Post subject: help please about mod_rewrite
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
Michele Di Benedetto

External


Since: Jan 22, 2008
Posts: 2



(Msg. 2) Posted: Tue Jan 22, 2008 7:38 am
Post subject: Re: help please about mod_rewrite [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 22 Gen, 15:37, "HansH" <ha....RemoveThis@invalid.invalid> wrote:
> "Michele Di Benedetto" <mikyd....RemoveThis@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!

 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 162



(Msg. 3) Posted: Tue Jan 22, 2008 11:08 am
Post subject: Re: help please about mod_rewrite [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Michele Di Benedetto" <mikydibe DeleteThis @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
 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
Kees Nuyt

External


Since: Oct 25, 2006
Posts: 78



(Msg. 4) Posted: Tue Jan 22, 2008 2:04 pm
Post subject: Re: help please about mod_rewrite [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>On 22 Gen, 15:37, "HansH" <ha....DeleteThis@invalid.invalid> wrote:
>> "Michele Di Benedetto" <mikyd....DeleteThis@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)
 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 162



(Msg. 5) Posted: Tue Jan 22, 2008 5:04 pm
Post subject: Re: help please about mod_rewrite [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

or don't point at all.

HansH
 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
Kees Nuyt

External


Since: Oct 25, 2006
Posts: 78



(Msg. 6) Posted: Tue Jan 22, 2008 8:04 pm
Post subject: Re: help please about mod_rewrite [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>"Kees Nuyt" <k.nuyt.RemoveThis@nospam.demon.nl> schreef in bericht
>news:9v9cp39vt7jo9ps84pt52kv3slschtnpk2@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#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)
 >> Stay informed about: help please about mod_rewrite 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_rewrite example? - I've been looking through the mod_rewrite info from here: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule I still dont understand how to make something like the following: www.blah.com/aaa/bbb/ccc.xxx Get rewritten to say:..

mod_rewrite directory - Hi, I am using mod_rewrite to re-direct all requests to a directory to a .php script using a set of commands similar to: RewriteEngine on RewriteRule !\.(gif|jpg|png|css)$ ../some_dir/handler.php [T=application/x-httpd-php] These reside within a..

Mod_rewrite Problems - Hey All, I am running a Fedora Core 3 server, with Apache/2.0.53 and PHP/ 4.3.11, with each user having their own folder under the server (ie '/ home/userOne/public_html' = 'server.com/~userOne') I am trying to get the mod_rewrite module to work for me...

mod_rewrite on AppServ - I am using: AppServ 2.5.9 (Apache 2.2.4 PHP 5.2.3 MySQL 5.0.45 phpMyAdmin-2.10.2) CakePHP 1.1.19.6305 I need to configure Apache to use pretty URLs like: www.example.com/controllername/actionname/param The CakePHP manual says: "Make sure that...

Q about mod_rewrite flags - I thought that I understood flags, but I guess not! My site has a series of parked domains, and based on what domain is typed in, the visitor sees different verbiage. However, a few bugs have been that if they leave off the www or trailing slash, they'r...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]