[TYPO3-english] realurl 1.12.7 404 error index.php

Gregor Binder gregor at catrix.at
Wed Nov 20 20:10:31 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

it seems that the rewrite rules are wrong.
with the rewrite rules from the documentation it is not possible to
open the backend because the backend open files from typo3temp and
these are not excluded in the rewriterules. another problem is the
default rewrite rule ".* index.php" in the documentation is written
".* /index.php" for the virtual hosts. which produce a endless loop
when you have as root a shortcut to a page under the root, how every
default typo3 page look like.

king regards
gregor

GPG-Key: DCC43794
URL: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794


On 2013-11-20 19:02, Gregor Binder wrote:
> i found the problem with the rewrite rules. my apache ignored the 
> htacces, i fixed that. now all the requests are send to index.php
> 
> this is the realurl_autoconf.php content: ------------------------ 
> <?php 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=unserialize('a:1:{s:8:"_DEFAULT";a:3:{s:4:"init";a:6:{s:16:"enableCHashCache";b:1;s:18:"appendMissingSlash";s:18:"ifNotFile,redirect";s:18:"adminJumpToBackend";b:1;s:20:"enableUrlDecodeCache";b:1;s:20:"enableUrlEncodeCache";b:1;s:19:"emptyUrlReturnValue";s:1:"/";}s:8:"pagePath";a:5:{s:4:"type";s:4:"user";s:8:"userFunc";s:68:"EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main";s:14:"spaceCharacter";s:1:"-";s:14:"languageGetVar";s:1:"L";s:11:"rootpage_id";s:1:"1";}s:8:"fileName";a:3:{s:25:"defaultToHTMLsuffixOnPrev";i:0;s:16:"acceptHTMLsuffix";i:1;s:5:"index";a:1:{s:5:"print";a:1:{s:9:"keyValues";a:1:{s:4:"type";i:98;}}}}}}');
>
> 
?>
> -------------------------
> 
> king regards gregor
> 
> GPG-Key: DCC43794 URL:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>
> 
> 
> On 2013-11-20 16:51, Markus Klein wrote:
>> Hi!
> 
>> Does it work without RealUrl? If so, please post the
>> autogenerated realurl config from the typo3conf folder.
> 
>> Kind regards Markus
> 
>> ------------------------------------------------------------
>> Markus Klein TYPO3 CMS Active Contributors Team Member
> 
> 
>>> -----Original Message----- From: 
>>> typo3-english-bounces at lists.typo3.org [mailto:typo3-english- 
>>> bounces at lists.typo3.org] On Behalf Of Gregor Binder Sent: 
>>> Wednesday, November 20, 2013 4:47 PM To: TYPO3 English
>>> Subject: Re: [TYPO3-english] realurl 1.12.7 404 error
>>> index.php
>>> 
>> now i installed typo3 6.1.5 fresh and it still doesn't work. the 
>> realurl chache is still empty. and whatever i type in baseURL or 
>> absRefPrefix it still doesn't changed anything.
> 
>> king regards gregor
> 
>> GPG-Key: DCC43794 URL: 
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>
>> 
> 
> 
>> On 2013-11-19 01:11, Gregor Binder wrote:
>>>>> i use autoconfig and with and without a domain record
>>>>> nothing changed. you have time for the irc?
>>>>> 
>>>>> king regards gregor
>>>>> 
>>>>> GPG-Key: DCC43794 URL:
>>>>> 
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>>>>>
>>>>>
>>>>>
>>>>>
>
>> 
> On 2013-11-19 00:51, Markus Klein wrote:
>>>>>> Hi!
>>>>> 
>>>>>> Ok, what's your realurl config like? Are you using 
>>>>>> autoconfig? If so, did you create the domain record on
>>>>>> the root page?
>>>>> 
>>>>>> Kind regards Markus
>>>>> 
>>>>>> ------------------------------------------------------------
>>>>>>
>>>>>>
>
>>>>>> 
Markus Klein TYPO3 CMS Active Contributors Team Member
>>>>> 
>>>>> 
>>>>>>> -----Original Message----- From: 
>>>>>>> typo3-english-bounces at lists.typo3.org 
>>>>>>> [mailto:typo3-english- bounces at lists.typo3.org] On
>>>>>>> Behalf Of Gregor Binder Sent: Tuesday, November 19,
>>>>>>> 2013 12:25 AM To: TYPO3 English Subject: Re:
>>>>>>> [TYPO3-english] realurl 1.12.7 404 error index.php
>>>>>>> 
>>>>>> yes i have such a folder structure. i tried your
>>>>>> htaccess entries but the problem is the same. i checked
>>>>>> the realurl cache under "web->info" and there i have no
>>>>>> mappings: 
>>>>>> https://www.dropbox.com/s/1rn2tv43kqaulag/Screenshot%20-%202013-
>
>>>>>> 
>>>>>> 
> 11-
>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 18%20-%2023%3A57%3A53.png
>>>>> 
>>>>>> king regards gregor
>>>>> 
>>>>>> GPG-Key: DCC43794 URL:
>>>>>> 
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>
>> 
> On 2013-11-18 23:54, Markus Klein wrote:
>>>>>>>>> Again, please post your current mod_rewrite 
>>>>>>>>> settings.
>>>>>>>>> 
>>>>>>>>> Do you have anything special in the vhost?
>>>>>>>>> 
>>>>>>>>> I assume this is your directory structure: 
>>>>>>>>> /var/www/<theVhost>/typo3# ls typo3src typo3 
>>>>>>>>> index.php .htaccess ...
>>>>>>>>> 
>>>>>>>>> Basically the mod_rewrite commands in your
>>>>>>>>> .htaccess should  look like this then:
>>>>>>>>> 
>>>>>>>>> RewriteEngine On
>>>>>>>>> 
>>>>>>>>> RewriteBase /typo3/
>>>>>>>>> 
>>>>>>>>> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond
>>>>>> %{REQUEST_FILENAME}
>>>>>>>>> !-d RewriteRule 
>>>>>>>>> ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 
>>>>>>>>> [L]
>>>>>>>>> 
>>>>>>>>> RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F] 
>>>>>>>>> RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - 
>>>>>>>>> [F] RewriteRule 
>>>>>>>>> ^typo3conf/ext/[^/]+/Resources/Private/ - [F] 
>>>>>>>>> RewriteRule
>>>>>>>>> 
>> ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\
>>>>>>>>>
>> 
.ico
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>> 
>>>>>>>>> 
>> )
>>>>>>>>> - [L]
>>>>>>>>> 
>>>>>>>>> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond
>>>>>> %{REQUEST_FILENAME}
>>>>>>>>> !-d RewriteCond %{REQUEST_FILENAME} !-l
>>>>>>>>> RewriteRule .* index.php [L]
>>>>>>>>> 
>>>>>>>>> Kind regards Markus
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>
>>>>>>>>>
>
>>>>>>>>> 
>>>>>>>>> 
> Markus Klein TYPO3 CMS Active Contributors Team Member
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> -----Original Message----- From: 
>>>>>>>>>> typo3-english-bounces at lists.typo3.org 
>>>>>>>>>> [mailto:typo3-english- bounces at lists.typo3.org]
>>>>>>>>>> On Behalf  Of Gregor Binder Sent: Monday,
>>>>>>>>>> November 18, 2013 11:24 PM To:
>> TYPO3
>>>>>>>>>> English Subject: Re: [TYPO3-english] realurl
>>>>>>>>>> 1.12.7 404 error index.php
>>>>>>>>>> 
>>>>>>>>> i moved the whole installation to a vhost and the 
>>>>>>>>> subfolder typo3 like in the wiki entry: 
>>>>>>>>> http://wiki.typo3.org/Realurl/manual but i have
>>>>>>>>> still the same problem. when i try to open 
>>>>>>>>> https://webserver/typo3/startseite i get "The 
>>>>>>>>> requested URL  /typo3/startseite was not found on 
>>>>>>>>> this server." in the wiki is written that there 
>>>>>>>>> should be /typo3/startseite.html? wie does my
>>>>>>>>> server don't create a startseite.html?
>>>>>>>>> 
>>>>>>>>> king regards gregor
>>>>>>>>> 
>>>>>>>>> GPG-Key: DCC43794 URL:
>>>>>>>>> 
>>>>>> 
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>>>>>>>>>
>>>>>>>>>
>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>
>> 
> On 2013-11-18 19:13, Jost Baron wrote:
>>>>>>>>>>>> Hi Gregor,
>>>>>>>>>>>> 
>>>>>>>>>>>> On 11/18/2013 06:50 PM, Gregor Binder wrote:
>>>>>>>>>>>>> i have the following rewrite rule:
>>>>>>>>>>>> 
>>>>>>>>>>>>> RewriteEngine On RewriteRule ^/3opyt$ -
>>>>>>>>>>>>> [L] RewriteRule ^/3opyt/.*$ - [L]
>>>>>>>>>>>>> RewriteCond %{REQUEST_FILENAME} !-f
>>>>>> RewriteCond
>>>>>>>>>>>>> %{REQUEST_FILENAME} !-d RewriteCond
>> %{REQUEST_FILENAME} !-l
>>>>>>>>>>>>> RewriteRule .* /index.php
>>>>>>>>>>>> 
>>>>>>>>>>>> I assume these rules are in a .htaccess file
>>>>>>>>>>>> in the directory domain.com/3opyt/. In that
>>>>>>>>>>>> case, the first  two rewrite rules are wrong,
>>>>>>>>>>>> they should be
>>>>>>>>>>>> 
>>>>>>>>>>>> RewriteRule ^typo3$ - [L] RewriteRule 
>>>>>>>>>>>> ^typo3/.*$ - [L]
>>>>>>>>>>>> 
>>>>>>>>>>>> Also, you need to define a RewriteBase for
>>>>>>>>>>>> your rules, since you run Typo3 in a
>>>>>>>>>>>> subdirectory. It should look like this
>>>>>>>>>>>> (placed directly after the directive that
>>>>>>>>>>>> switches the rewrite engine on):
>>>>>>>>>>>> 
>>>>>>>>>>>> RewriteBase /3opyt/
>>>>>>>>>>>> 
>>>>>>>>>>>> Currently your server tries to deliver the 
>>>>>>>>>>>> file https://webserver/index.php, which does 
>>>>>>>>>>>> not exists - it should be 
>>>>>>>>>>>> https://webserver/3opyt/index.php
>>>>>>>>>>>> 
>>>>>>>>>>>> HTH, Jost
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> after i cleared the cache i get the
>>>>>>>>>>>>> following error  on the url 
>>>>>>>>>>>>> "https://webserver/startseite":
>>>>>>>>>>>> 
>>>>>>>>>>>>> Not Found The requested URL /startseite
>>>>>>>>>>>>> was not found on this server.
>>>>>>>>>>>> 
>>>>>>>>>>>>> king regards gregor
>>>>>>>>>>>> 
>>>>>>>>>>>>> GPG-Key: DCC43794 URL:
>>>>>>>>>>>>> 
>>>>>>>>> 
>>>>>> 
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64E70934DCC43794
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>
>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>
>> 
> On 2013-11-18 18:47, Markus Klein wrote:
>>>>>>>>>>>>>> Hi Gregor,
>>>>>>>>>>>> 
>>>>>>>>>>>>>> what do you mean with "it does not
>>>>>>>>>>>>>> generate a index.php". Is the RewriteBase
>>>>>>>>>>>>>> in your .htaccess  correct?
>>>>>>>>>>>> 
>>>>>>>>>>>>>> Kind regards Markus
>>>>>>>>>>>> 
>>>>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>>>
>
>>>>>>>>>>>>>> 
Markus Klein TYPO3 CMS Active Contributors Team Member
>>>>>>>>>>>> 
>>>>>>>>>>>>>>> -----Original Message----- From: 
>>>>>>>>>>>>>>> typo3-english-bounces at lists.typo3.org 
>>>>>>>>>>>>>>> [mailto:typo3-english- 
>>>>>>>>>>>>>>> bounces at lists.typo3.org]  On Behalf Of 
>>>>>>>>>>>>>>> Gregor Binder Sent: Monday, November
>>>>>>>>>>>>>>> 18, 2013 6:42 PM
>> To:
>>>>>>>>>>>>>>> typo3-english at lists.typo3.org Subject:
>>>>>>>>>>>>>>>  [TYPO3-english] realurl 1.12.7 404
>>>>>>>>>>>>>>> error index.php
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> hi,
>>>>>>>>>>>> 
>>>>>>>>>>>>>> i followed the official manual and i get
>>>>>>>>>>>>>> an 404 error that the page index.php
>>>>>>>>>>>>>> can't be found. realurl translate the url
>>>>>>>>>>>>>> correct to http://domain.abc/startpage/
>>>>>>>>>>>>>> but it doesn't generate a index.php. i
>>>>>>>>>>>>>> have the rewrite rules from the manual
>>>>>>>>>>>>>> activated in my apache installation. what
>>>>>>>>>>>>>> can be wrong? i tried also to get help in
>>>>>>>>>>>>>> the #typo3 irc on freenode but no active
>>>>>>>>>>>>>> people are there. i tried it since 5 days
>>>>>>>>>>>>>> :-(
>>>>>>>>>>>> 
>>>>>>>>>>>>>> regards gregor
>>>>>>>>>>>> 
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>
>>>>>>>>>>>>>>>
>
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
> TYPO3-
>>>>>>>>> english
>>>>>>>>>>>>>>> mailing list 
>>>>>>>>>>>>>>> TYPO3-english at lists.typo3.org 
>>>>>>>>>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-englis
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>
>>>>>>>>>>>>>>> 
h
>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>> _______________________________________________ TYPO3-
>>>>>>>>> english
>>>>>>>>>>>>>> mailing list
>>>>>>>>>>>>>> TYPO3-english at lists.typo3.org 
>>>>>>>>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>>>
>
>>>>>>>>>>>>>> 
_______________________________________________ TYPO3-
>>>>>>>>> english mailing
>>>>>>>>>>>> list TYPO3-english at lists.typo3.org 
>>>>>>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>
>>>>>>>>>>>>
>
>>>>>>>>>>>> 
_______________________________________________
>>>>>>>>>> TYPO3-english mailing list 
>>>>>>>>>> TYPO3-english at lists.typo3.org
>>>>>>>>>> 
>>>>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>
>>>>>>>>>>
>
>>>>>>>>>> 
>>>>>>>>>> 
> _______________________________________________ TYPO3-
>>>>>> english mailing
>>>>>>>>> list TYPO3-english at lists.typo3.org 
>>>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>>>>>
>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>
>>>>>>>>>
>
>>>>>>>>> 
>>>>>>>>> 
> _______________________________________________
>>>>>>> TYPO3-english mailing list
>>>>>>> TYPO3-english at lists.typo3.org 
>>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>
>>>>>>
>>>>>>>
>
>>>>>>> 
_______________________________________________ TYPO3-
>> english mailing
>>>>>> list TYPO3-english at lists.typo3.org 
>>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>
>>>>>
>>>>>>
>
>>>>>> 
_______________________________________________ TYPO3-
>> english mailing
>>>>> list TYPO3-english at lists.typo3.org 
>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>>>
>>>
>>>>>
>
>>>>> 
_______________________________________________
>>> TYPO3-english mailing list TYPO3-english at lists.typo3.org 
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
>> _______________________________________________ TYPO3-english 
>> mailing list TYPO3-english at lists.typo3.org 
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
> _______________________________________________ TYPO3-english
> mailing list TYPO3-english at lists.typo3.org 
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSjQknAAoJEOsup91wvl7n/XwP/147pBlE1UydmAppuoimZu3G
8bCG7ymVyBVCJVC6RXL/yFcweSwRG1K8w1w1Dd11EmDCsf5+rlCMglcjqwa9Xcva
tsaRQeoOTSvmRJq54+oXTJ4zhXjYQF2ICkkN7EecBS/I9TJSvPYXXpEbgR+XrRgo
2vPpMqfcyUOXCKcoeRkh3S+E0kqZOkSkB/bxoLpqYLbvIhuRH3iXQaKhGIm1/VQG
KWeBDzsmrSZ5xqCd9i/NEudJemUYWrjtAF39oItaKCdrMkGLmpzQLXs/4SKP3kCB
TVwwqRa6cn4zetkGE3WYq+nZjg3JEG+sU+hLWtamKHgn6vZuZrqTg/dqrym1NQzZ
PpNM1LjGa+mLW66JmW0sJt/qfM39n38zxuTHZxsysHBycZm32JATYS5iGIaSSuFf
SSUQ4t1Ic9dqEJCjBStwrvDBK0+dS+eh2t1uqeTRgyb2E4jg1yQ9fWXKcQz52Oj8
Dg8QofFfqARgYnkt3wP5eE8xenZtPxA/M1L9YLCdChACby5HdQQLN/bR5NlcxyaQ
/ItWuWDshiANPlUVdzOV4hIMVwtNIW7uecp48tSJduzmPrakzIaZh7Uc1bhoMWlk
WPZ+VDf4oZPj+rZYStFuDG5aPMNI01V/lhNcYWq0WgugWoH1N45LGLzANnc/TxZ7
+S2QnWqKvFOiupsvquOZ
=vjPL
-----END PGP SIGNATURE-----


More information about the TYPO3-english mailing list