<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Clean URL in a Multi Tenanted Environment using mod rewrite]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I have successfully set up fop2 and have got it working in a multi tenanted environment but would like it to work with clean URLs</p>
<p dir="auto">each on e of our contexts will be 4 alpha characters so I have this in my virtual host config</p>
<p dir="auto">RewriteEngine On<br />
RewriteRule ^([a-z]{4})$ /?context=$1</p>
<p dir="auto">And have tried a lot of permutations of the above.</p>
<p dir="auto">I know that mod rewrite is enables because if I put /abc at the end of the user I get an apache error whereas if I put /abcd I get a fop2 login but it's like it ignores the context aspect.</p>
<p dir="auto">Does anyone have any ideas about this?</p>
]]></description><link>http://localhost:4567/topic/1291/clean-url-in-a-multi-tenanted-environment-using-mod-rewrite</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:28:31 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1291.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Nov 2012 09:59:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Clean URL in a Multi Tenanted Environment using mod rewrite on Thu, 08 Nov 2012 11:36:44 GMT]]></title><description><![CDATA[<p dir="auto">The variable is picked up from the GET request (it can also be picked up from javascript title attribute). But in your case the get is all that matters. If mod_rewrite is redirecting you and passes the request with the context in it, then it should work just fine. But as I am really not familiar with mod_rewrite and its complexities, I cannot tell you if something is amiss. Not sure if you need to pass /fop2/?context= instead of just context= for example.</p>
]]></description><link>http://localhost:4567/post/5761</link><guid isPermaLink="true">http://localhost:4567/post/5761</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 08 Nov 2012 11:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to Clean URL in a Multi Tenanted Environment using mod rewrite on Thu, 08 Nov 2012 09:00:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Thanks for the tip, it really helped.</p>
<p dir="auto">So, the working condition I've got to is:</p>
<p dir="auto">RewriteRule ^/([a-z]{4})$ ?context=$1 [L,R]</p>
<p dir="auto">The key bit here is the R flag which issues a redirect to the browser and we end up at the messy URL again, which has got me wondering; where exactly is the get variable being picked up? Is it being pulled by php or extracted from the URL string by the javascript?</p>
]]></description><link>http://localhost:4567/post/5760</link><guid isPermaLink="true">http://localhost:4567/post/5760</guid><dc:creator><![CDATA[IshMalik]]></dc:creator><pubDate>Thu, 08 Nov 2012 09:00:48 GMT</pubDate></item><item><title><![CDATA[Reply to Clean URL in a Multi Tenanted Environment using mod rewrite on Thu, 08 Nov 2012 03:04:51 GMT]]></title><description><![CDATA[<p dir="auto">Not sure exactly what your problem might be, I am not an expert with mod_rewrite. I would try to setup some debugging for it to get an idea on what is happening, perhaps this article might help:</p>
<p dir="auto"><a href="http://www.latenightpc.com/blog/archives/2007/09/05/a-couple-ways-to-debug-mod_rewrite" rel="nofollow ugc">http://www.latenightpc.com/blog/archive ... od_rewrite</a></p>
]]></description><link>http://localhost:4567/post/5759</link><guid isPermaLink="true">http://localhost:4567/post/5759</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 08 Nov 2012 03:04:51 GMT</pubDate></item></channel></rss>