Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Mauro Sacchetto
Il martedì 7 ottobre 2008 19:43:09 hai scritto: > That is because the link you click on contains the long addres. > Rewrites do not affect the content of the response. You will need to > change the code that generates the menu to use the short address for > the "home" button. Y're right! Infact I

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Krist van Besien
On Tue, Oct 7, 2008 at 4:59 PM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Yes. This happen if I start from http://www.giovannifornero.net, > go in another page abd come back ho home clicking > non the "Home" voice on the menu bar. This time > I obtain the long PHP address. That is because the

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Mauro Sacchetto
Il martedì 7 ottobre 2008 17:29:36 hai scritto: > If the menus are not being generated, they are just HTML files (or PHP > files including static HTML for menus.)  Just change the links for the > homepage to the now-working URL: >    Home > Becomes: >    Home > The new links will only work through

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread solprovider
On 10/7/08, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Il martedì 7 ottobre 2008 16:41:50 Krist van Besien ha scritto: > > Ofcourse, this is not the end. You might have to look at the links > > that are in the page that index.php generates... > Not easy for me... Just learning... > > > Is this

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Mauro Sacchetto
Il martedì 7 ottobre 2008 16:41:50 Krist van Besien ha scritto: > What you have to understand is that RewriteRules operate on the > requests that are sent from the browser to the server, not the other > way round. > So what you can do with a rewrite rule is make it possible for a > browser to reque

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Krist van Besien
On Tue, Oct 7, 2008 at 3:14 PM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Il martedì 7 ottobre 2008 08:21:04 [EMAIL PROTECTED] ha scritto: >> This cannot be fixed with basic Apache httpd; you should correct your >> menus in the application. (mod_proxy_html might help if you get it to >> work.) >

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Krist van Besien
On Tue, Oct 7, 2008 at 3:10 PM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Il martedì 7 ottobre 2008 08:21:04 [EMAIL PROTECTED] ha scritto: >> The second rewrite redirects requests with the querystring >> "?pagina=home" to the homepage. To check querystrings with multiple >> parameters: >>Re

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Mauro Sacchetto
Il martedì 7 ottobre 2008 08:21:04 [EMAIL PROTECTED] ha scritto: > This cannot be fixed with basic Apache httpd; you should correct your > menus in the application. (mod_proxy_html might help if you get it to > work.) Consider that I use an external host, so I cannot work on its Apache configurati

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-07 Thread Mauro Sacchetto
Il martedì 7 ottobre 2008 08:21:04 [EMAIL PROTECTED] ha scritto: > The second rewrite redirects requests with the querystring > "?pagina=home" to the homepage. To check querystrings with multiple > parameters: >RewriteCond %{QUERY_STRING} ^(.*&)*pagina=home(&)? >RewriteRule (*.) / [P] If I

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread solprovider
On 10/6/08, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Il lunedì 6 ottobre 2008 19:14:02 hai scritto: > > > None of the examples in the manual match against the protocol or > > hostname part of the URL. > > I previously described that you also can't match the query string in > > the rewriterul

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Mauro Sacchetto
Il lunedì 6 ottobre 2008 19:14:02 hai scritto: > None of the examples in the manual match against the protocol or > hostname part of the URL. > I previously described that you also can't match the query string in > the rewriterule. > You also probably need a trailing slash on the 2nd argument. > No

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Eric Covener
On Mon, Oct 6, 2008 at 12:18 PM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > Il lunedì 6 ottobre 2008 15:55:33 Eric Covener ha scritto: >> The query string (after the question mark) isn't part of what you're >> comparing against. To compare against the query string, precede your >> rule with >> Re

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Mauro Sacchetto
Il lunedì 6 ottobre 2008 15:56:23 Krist van Besien ha scritto: > In what direction do you want the rewrite to happen? > Let me guess: You want the user to be able to enter the following in > the address bar in his browser: > http://www.giovannifornero.net > and the webserver should then answer with

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Mauro Sacchetto
Il lunedì 6 ottobre 2008 15:55:33 Eric Covener ha scritto: > The query string (after the question mark) isn't part of what you're > comparing against. To compare against the query string, precede your > rule with > Rewritecond %{QUERY_STRING} pagina=home (and remove the query string part. > The 2nd

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Mauro Sacchetto
Il lunedì 6 ottobre 2008 15:56:23 Krist van Besien ha scritto: > In what direction do you want the rewrite to happen? > Let me guess: You want the user to be able to enter the following in > the address bar in his browser: > http://www.giovannifornero.net > and the webserver should then answer with

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Krist van Besien
On Mon, Oct 6, 2008 at 3:31 PM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > I must translate the following address: > http://www.giovannifornero.net/index.php?pagina=home > in the more confortable way: > http://www.giovannifornero.net > I tried to put in .htaccess the string: > RewriteRule ^/index

Re: [EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Eric Covener
On Mon, Oct 6, 2008 at 9:31 AM, Mauro Sacchetto <[EMAIL PROTECTED]> wrote: > I must translate the following address: > http://www.giovannifornero.net/index.php?pagina=home > in the more confortable way: > http://www.giovannifornero.net > I tried to put in .htaccess the string: > RewriteRule ^/index

[EMAIL PROTECTED] Address rewriting with mod_rewrite

2008-10-06 Thread Mauro Sacchetto
I must translate the following address: http://www.giovannifornero.net/index.php?pagina=home in the more confortable way: http://www.giovannifornero.net I tried to put in .htaccess the string: RewriteRule ^/index.php?pagina=home$ ^giovannifornero.net [R=301,NC,L] but it doesn't happen anything. Is