From: Lachlan K. <l....@li...> - 2008-01-04 10:14:31
|
Hi Roman, We are aware of many of the issues relating to the recent mod_rewrite changes, and are currently working to resolve them. We anticipate that a fix will be committed to trunk sometime next week. Regards, Lachlan -----Original Message----- From: fez...@li... [mailto:fez...@li...] On Behalf Of Roman Chyla Sent: Friday, 4 January 2008 8:09 PM To: fez...@li... Subject: Re: [Fez-developers] rewrite rules do not work if fez is in a subdirectory hi again, in my test installation, i have this structure community (avi:60) |- collection (avi:64) |- collection (avi:65) the link on http://avi.lib.cas.cz/sandbox/fex/trunk/collection/avi:64 page is: href="collection/avi:65" which resolves to http://avi.lib.cas.cz/sandbox/fex/trunk/collection/collection/avi:65 either rewrite rule must be rewritten, i have this: RewriteRule community/([A-Za-z]+):([0-9]+)(?:(?:/?)(.+))*$ it works, but i don't know about implications or the link should be generated as an absolute. But this may effect more links, many pages! (one general function for links would solve these inconsistencies, cms framework would rule them out ;-)). Best, roman On Jan 4, 2008 10:51 AM, Roman Chyla <rom...@gm...> wrote: > Hi, > the rewrite rules won't work if fez is not in the root, I have > modified it to what i think is more appropriate, see below. I also > think that passed arguments could be more standardized, it is > perfectly possible to write this (and change the code) > > RewriteRule ^community/([A-Za-z]+):([0-9]+)(?:(?:/?)(.+))*$ > list.php?type=community&pid=$1:$2&$3 [L] > instead of > RewriteRule ^community/([A-Za-z]+):([0-9]+)(?:(?:/?)(.+))*$ > list.php?community_pid=$1:$2&$3 [L] > > But i guess it is more work when sometimes the style community/{pid} > and sometimes the style dosomething.php?community_pid=xxx is used in > the code. > Best, > > roman > > ------------------.htaccess----------------------------- > > <IfModule mod_rewrite.c> > RewriteEngine on > > # Modify the RewriteBase if you are using Fez in a subdirectory and > # the rewrite rules are not working properly. > #RewriteBase /sandbox/fex/trunk/ > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteRule ^view/([A-Za-z]+):([0-9]+)(\?.*)*$ > view.php?pid=$1:$2$3 [L] > RewriteRule ^eserv/([A-Za-z]+):([0-9]+)/(.+)(/.+)*$ > eserv.php?pid=$1:$2&dsID=$3$4 [L] > RewriteRule ^community/([A-Za-z]+):([0-9]+)(?:(?:/?)(.+))*$ > list.php?community_pid=$1:$2&$3 [L] > RewriteRule ^collection/([A-Za-z]+):([0-9]+)(?:(?:/?)(.+))*$ > list.php?collection_pid=$1:$2&$3 [L] > RewriteRule ^list/(?:(?:/?)(.+))*$ > list.php?$1 [L] > > </IfModule> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fez-developers mailing list Fez...@li... https://lists.sourceforge.net/lists/listinfo/fez-developers |