Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread fatefree

I use a crypted url strategy for security on non bookmarkable page links. If
you have a standard bookmarkable page, wicket will generate a REST style
urls like /page/id/5, which will not be encrypted. However there seems to be
an issue where if you try to mount the home page, it is generated as
/page?id=1, which then gets encrypted.

However instead of using apache mod rewrite, I found that if you set the
index page to forward the request to another page using
setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
be resolved.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread avrahamr

So there is were I don't follow.
You use crypted url strategy in order to have non bookmarkable links.
Now you want the homemage to have bookmarkable links.
So why not to stop using crypted url strategy for the homepage, you can use
it only for the pages you want non bookmarkable URLs.
Am I missing something?

Also, for the Wicket experts out there, can we do something like this on the
Application?
mount(new QueryStringUrlCodingStrategy(/, HomePage.class));

On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] 
ml-node+2304786-2098886504-293...@n4.nabble.comml-node%2b2304786-2098886504-293...@n4.nabble.com
 wrote:

 I use a crypted url strategy for security on non bookmarkable page links.
 If you have a standard bookmarkable page, wicket will generate a REST style
 urls like /page/id/5, which will not be encrypted. However there seems to be
 an issue where if you try to mount the home page, it is generated as
 /page?id=1, which then gets encrypted.

 However instead of using apache mod rewrite, I found that if you set the
 index page to forward the request to another page using
 setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
 be resolved.

 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread fatefree

Yeah I think you are missing something. Bookmarkable page links with
query parameters behave differently for the application home page.

For example, for any random bookmarkable page mounted to /stories,
with a parameter 'page' and value '1', the url is displayed as
/stories/page/1. This can be used in conjunction with the crypted url
strategy with no problems, nothing will be encrypted and the url is
bookmarkable.

If you mount the designated application home page to /stories however,
the url is displayed as /stories/?page=1, which unfortunately does get
encrypted.

So i suppose it would be possible to limit the crypted url strategy to
everything but the home page, but as I mentioned an easier solution
was to just set the responsePage of the application home page to
another bookmarkable page.

On Wed, Jul 28, 2010 at 3:40 PM, avrahamr [via Apache Wicket]
ml-node+2305504-1441931081-229...@n4.nabble.com wrote:
 So there is were I don't follow.
 You use crypted url strategy in order to have non bookmarkable links.
 Now you want the homemage to have bookmarkable links.
 So why not to stop using crypted url strategy for the homepage, you can use
 it only for the pages you want non bookmarkable URLs.
 Am I missing something?
 Also, for the Wicket experts out there, can we do something like this on the
 Application?
 mount(new QueryStringUrlCodingStrategy(/, HomePage.class));
 On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] [hidden
 email] wrote:

 I use a crypted url strategy for security on non bookmarkable page links.
 If you have a standard bookmarkable page, wicket will generate a REST style
 urls like /page/id/5, which will not be encrypted. However there seems to be
 an issue where if you try to mount the home page, it is generated as
 /page?id=1, which then gets encrypted.

 However instead of using apache mod rewrite, I found that if you set the
 index page to forward the request to another page using
 setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
 be resolved.

 
 View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
 To start a new topic under Wicket - User, email [hidden email]
 To unsubscribe from Wicket - User, click here.



 --
 []'s
 Avraham Rosenzweig
 [hidden email]


 
 View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html
 To unsubscribe from Re: Using Apache mod rewrite to fix home page parameter
 problem, click here.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305560.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Using Apache mod rewrite to fix home page parameter problem

2010-07-27 Thread Anthony DePalma
I am looking for a solution to a nagging problem on my first wicket
site, www.luckeffect.com.

The problem is that page parameters are not bookmarkable on the page
that is specified as the application home page. For an example, the
breadcrumb link Home  'Page 1' on http://www.luckeffect.com/ is
unintentionally obfuscated through the crypted url coding strategy
because the parameters on the home page are standard query parameters.
However, on any other page, they are bookmarked correctly, for
example, the exact same link on the unlucky page
http://www.luckeffect.com/unlucky works as intended.

One idea was to change my application home page to a class that simply
redirects to a new StoriesPage, mapped to /stories. This fixes the
page parameter problem, but I really don't like adding a redirect to
the home page for seo reasons. To circumvent this, is it possible to
use apache's mod rewrite to change www.luckeffect.com/ to
www.luckeffect.com/stories behind the scenes? Are there any known
problems with using apache mod rewrite with wicket?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-27 Thread avrahamr

What do you mean unintentionally? Why do you use a crypted url strategy?


On Tue, Jul 27, 2010 at 6:54 PM, fatefree [via Apache Wicket] 
ml-node+2303737-2108181663-293...@n4.nabble.comml-node%2b2303737-2108181663-293...@n4.nabble.com
 wrote:

 I am looking for a solution to a nagging problem on my first wicket
 site, www.luckeffect.com.

 The problem is that page parameters are not bookmarkable on the page
 that is specified as the application home page. For an example, the
 breadcrumb link Home  'Page 1' on http://www.luckeffect.com/ is
 unintentionally obfuscated through the crypted url coding strategy
 because the parameters on the home page are standard query parameters.
 However, on any other page, they are bookmarked correctly, for
 example, the exact same link on the unlucky page
 http://www.luckeffect.com/unlucky works as intended.

 One idea was to change my application home page to a class that simply
 redirects to a new StoriesPage, mapped to /stories. This fixes the
 page parameter problem, but I really don't like adding a redirect to
 the home page for seo reasons. To circumvent this, is it possible to
 use apache's mod rewrite to change www.luckeffect.com/ to
 www.luckeffect.com/stories behind the scenes? Are there any known
 problems with using apache mod rewrite with wicket?

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2303737i=0
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2303737i=1



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2303737.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2303959.html
Sent from the Wicket - User mailing list archive at Nabble.com.