Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi Alessandro [Tuveri], >Hi Follks >I am simulateStaticURLs lover, but recently I passed some sites to reealurl. [...] Thank you very much for sharing! Martin -- Certified TYPO3 Integrator | TYPO3 Documentation Team Member http://mbless.de ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi Follks I am simulateStaticURLs lover, but recently I passed some sites to reealurl. Unfortunately the realurl guide doesn't help anymore to do this job. To get the backward compatibility do the following: 0. Web > list mode >click the root-page of your site then add a new record typo3 domain; insert your domain name without 'http:'; ie. type: www.yourdomain.com 1. install realurl and configure 2. i prefer to put the code into the external file (realurl_conf.php) within typo3conf folder 3. set the site with this code: $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(); $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array( (... some other arrays conf...) $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(); $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array( 'respectSimulateStaticURLs' => 0, 'respectSimulateStaticURLs' => 1, 4. install simulateStatic 5. add these line to your SETUP (Web > template > edit whole record): config.baseURL = http://www.yourdomain.com/ <-don't forget to append the slash! config.simulateStaticDocuments = 0 confg.tx_realurl_enable = 1 (eventually copy the above lines for your page-object i.e.: page.config.simlateStaticDocuments = 0) 6.install clear_realurl_cache +ext 7. clear all realurl cache, pages cache, content cache, etc. ALL and test if it works correctly see also: http://xavier.perseguers.ch/en/tutorials/typo3/configuration/realurl.html http://www.typo3-media.com/blog/article/realurl-configurator.html read this and adapt the example described to your fits: http://www.oliver-thiele.de/cms-typo3/tutorials/realurl-tutorial.html ALESSANDRO TUVERI -- AREA SERVIZI INFORMATICI E MULTIMEDIALI Servizi WEeb d'Ateneo Universit? degli Studi di Udine tel. ufficio 0432-558904 -- Homo sine pecunia est imago mortis -- -- SEMEL (SErvizio di Messaging ELettronico) - AINF, Universita' di Udine ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
[Dmitry Dulepov] wrote & schrieb: >There is an option in RealURL to support simulateStatic URLs. Check the >manual :) Indeed - I didn't know that: http://preview.docs.typo3.org/TYPO3/Extensions/realurl/1.12.2/#init Cool - thanks! Martin ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi! Martin Bless wrote: may I add a small question here (but I don't wonna hijack the thread): Given the case that you have been using simulateStaticDocuments in the past and that you now are going to use realurl: Q: What would be a procedure to make old simulatedStatic-URLs still work? There is an option in RealURL to support simulateStatic URLs. Check the manual :) -- Dmitry Dulepov TYPO3 core team member Blog: http://dmitry-dulepov.com/ Twitter: http://twitter.com/dmitryd Simplicity will save the world. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi Dmitry, >You have to use either one or another. You cannot have both in the same >installation without doing some nasty tricks. may I add a small question here (but I don't wonna hijack the thread): Given the case that you have been using simulateStaticDocuments in the past and that you now are going to use realurl: Q: What would be a procedure to make old simulatedStatic-URLs still work? Martin -- Certified TYPO3 Integrator | TYPO3 Documentation Team Member http://mbless.de ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi! Pero Peric wrote: Dmitry thx. for reply. One more question regarding this. The main reason I was using simulateStaticDocuments was that I wanted foo.html types of URLs. I didn't manage to acomplish that using RealURL. The best I got was foo.html/ (trailling slash appended). I know there is RealURL option to disable/enable trailling slash but it didn't help. Maybe I've done something wrong. So, my question is if that's possible to do? Thx. RealURL appends the slash only if the URL does not point to the file. I guess it is not RealURL but rules in your .htaccess that append the slash. -- Dmitry Dulepov TYPO3 core team member Blog: http://dmitry-dulepov.com/ Twitter: http://twitter.com/dmitryd Simplicity will save the world. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Dmitry thx. for reply. One more question regarding this. The main reason I was using simulateStaticDocuments was that I wanted foo.html types of URLs. I didn't manage to acomplish that using RealURL. The best I got was foo.html/ (trailling slash appended). I know there is RealURL option to disable/enable trailling slash but it didn't help. Maybe I've done something wrong. So, my question is if that's possible to do? Thx. Regards. "Dmitry Dulepov" wrote in message news:mailman.1.1342036300.21073.typo3-engl...@lists.typo3.org... Hi! Pero Peric wrote: Hi. Is it possible to have RealURL and simulateStaticDocuments working in a multisite TYPO3 enviroment? So, for some sites I would like to have RealURL enabled and for others I'd like simulateStaticDocuments enabled (no need for RealURL). When I try to install RealURL while simulatestatic ext. is already installed it says I have to remove it. This means I can't have RealURL and simulatestatic together? If I install simulatestatic after RealURL ext. has been installed and put this in my template on a site where I don't need RealURL: These two extensions conflict with each other. The problems is: path to id resolution happens before your TypoScript is read. So the following is unavailable when RealURL is called by TYPO3: config.tx_realurl_enable = 0 config.simulateStaticDocuments = 1 config.simulateStaticDocuments_noTypeIfNoTitle = 1 As a result, you see: "The page did not exist or was inaccessible. Reason: Segment "2234" was not a keyword for a postVarSet as expected on page with id=1554." To process TypoScript, TYPO3 needs the page id. So it has to resolve path to id first. This is an egg&chicken issue. You have to use either one or another. You cannot have both in the same installation without doing some nasty tricks. -- Dmitry Dulepov TYPO3 core team member Blog: http://dmitry-dulepov.com/ Twitter: http://twitter.com/dmitryd Simplicity will save the world. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] RealURL and simulateStaticDocuments
Hi! Pero Peric wrote: Hi. Is it possible to have RealURL and simulateStaticDocuments working in a multisite TYPO3 enviroment? So, for some sites I would like to have RealURL enabled and for others I'd like simulateStaticDocuments enabled (no need for RealURL). When I try to install RealURL while simulatestatic ext. is already installed it says I have to remove it. This means I can't have RealURL and simulatestatic together? If I install simulatestatic after RealURL ext. has been installed and put this in my template on a site where I don't need RealURL: These two extensions conflict with each other. The problems is: path to id resolution happens before your TypoScript is read. So the following is unavailable when RealURL is called by TYPO3: config.tx_realurl_enable = 0 config.simulateStaticDocuments = 1 config.simulateStaticDocuments_noTypeIfNoTitle = 1 As a result, you see: "The page did not exist or was inaccessible. Reason: Segment "2234" was not a keyword for a postVarSet as expected on page with id=1554." To process TypoScript, TYPO3 needs the page id. So it has to resolve path to id first. This is an egg&chicken issue. You have to use either one or another. You cannot have both in the same installation without doing some nasty tricks. -- Dmitry Dulepov TYPO3 core team member Blog: http://dmitry-dulepov.com/ Twitter: http://twitter.com/dmitryd Simplicity will save the world. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] RealURL and simulateStaticDocuments
Hi. Is it possible to have RealURL and simulateStaticDocuments working in a multisite TYPO3 enviroment? So, for some sites I would like to have RealURL enabled and for others I'd like simulateStaticDocuments enabled (no need for RealURL). When I try to install RealURL while simulatestatic ext. is already installed it says I have to remove it. This means I can't have RealURL and simulatestatic together? If I install simulatestatic after RealURL ext. has been installed and put this in my template on a site where I don't need RealURL: config.tx_realurl_enable = 0 config.simulateStaticDocuments = 1 config.simulateStaticDocuments_noTypeIfNoTitle = 1 static URLs are generated ok but they are not working :-( There is an error: "The page did not exist or was inaccessible. Reason: Segment "2234" was not a keyword for a postVarSet as expected on page with id=1554." This is a RealURL error so it seems the line: config.tx_realurl_enable = 0 has no effect at all. RealURL is still enabled. If I uninstall RealURL all works fine on that site. Anyone can help? THX! Regards. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english