Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 5th February 2013, 02:08
centurianii centurianii is offline
Junior Member
Join Date: Mar 2009
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Apache directives & front controller pattern

I'm wondering what directives to write to my apache 2 virtual hosts so as to start using a design based on the front controller pattern.

To be more precise, my ajax requests would update the url hash fragment resulting in urls shown to user as:
containing links of the form:
<a id="123" href="/#!/path/to/data&ui=123&var=456&id=2714">link</a>
or using the Hijax technique:
<a id="123" href="index.php?/path/to/data&ui=123&var=456&id=2714">link</a> 
(javascript handles all behavior of links)
But as google instructs here the crawler will make the following request TO the server:
or using the Hijax technique (nothing new here):
and the server SHOULD map these back to their ajax form plus a snapshot of the page!

As you can see, one immediate solution comes from the front controller pattern: send all external requests of the form:
and also force the user to see the new ajax version:
How can I do such generalized redirection in apache2?

Reply With Quote
Sponsored Links


ajax, apache directives, url rewriting

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions not being saved gavimobile General 6 15th January 2012 16:05
Apache hangs without traffic Thesee General 21 28th September 2011 00:43
local ip:8080 just downloads a file called download or index.php dr_patso Installation/Configuration 5 20th September 2011 21:54
SSL don't work please help me walner8080 Installation/Configuration 8 26th September 2010 13:07
problems with suexec gobokster Installation/Configuration 7 7th May 2009 14:33

All times are GMT +2. The time now is 17:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.