[Typo3] Press2web and Real URL .htaccess config

Robert John de Stigter robertjohn at bedrijvenweb.nl
Tue Oct 18 11:19:36 CEST 2005


Hi,

I added a condition to the rewrite rules for the Real URL extension:

RewriteCond %{REQUEST_URI} !^/press2web*

So when I access the press2web module the rule 'RewriteRule .*
index.php' doesn't pass the conditions.

New set of rewrite rules.
------------------------
RewriteEngine On

RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteRule ^press2web/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/$1 [QSA]
RewriteRule ^trek/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/trek.php$1 [QSA]

RewriteCond %{REQUEST_URI} !^/press2web*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
------------------------------

Cheers,
Robert

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Namens Robert John
de Stigter
Verzonden: vrijdag 14 oktober 2005 17:05
Aan: typo3-english at lists.netfielders.de
Onderwerp: [Typo3] Press2web and Real URL .htaccess config

I have a problem with some code in a .htaccess file
 
In this case the press2web module doesn't work properly:
 
RewriteEngine On
RewriteRule ^press2web/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/$1 [QSA] RewriteRule
^trek/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/trek.php$1 [QSA] RewriteRule
^typo3$ - [L] RewriteRule ^typo3/.*$ - [L] RewriteCond
%{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond
%{REQUEST_FILENAME} !-l RewriteRule .* index.php
 
As soon as I delete the last 4 lines (necassary for Real URL) the
extension works good.
 
RewriteEngine On
RewriteRule ^press2web/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/$1 [QSA] RewriteRule
^trek/?(.*)$
/typo3conf/ext/p2wlib/pi1/press2web/html/trek.php$1 [QSA] RewriteRule
^typo3$ - [L] RewriteRule ^typo3/.*$ - [L]
 
How do I solve this? It doesn't make any differece placing the press2web
rules at the end of the file. 
 
Regards,
Robert
 
 
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list