Discussion:
[TYPO3-english] RealURL Configuration Help
Rod Naugler
2011-11-02 08:17:55 UTC
Permalink
Hi all,
For many years I was using a customized version of RealURL which
produced URLs such as:
www.website.com/page1.html
www.website.com/page1/page2.html
www.website.com/page1/page2/page3.html

I have seen several posts here that seem to indicate that the latest
version of RealURL can do this natively. I have been forced to upgrade
one site to Typo3 4.5.7 which broke my previous RealURL so I have loaded
RealURL 1.11.2. I have gone through the manuals and I have tried several
configuration extensions but I have been unable to properly configure
RealURL to produce the proper URLs. Can anyone help me out?

Thanks!
Rod Naugler
Victor Livakovsky
2011-11-02 10:08:38 UTC
Permalink
Hi, Rod.

Possible solutions:
1. Read the manual of realurl.
2. Use some pre-configuration, like cbrealurl extension.
3. Take this basic configuration and extend it to your needs by reading the
manuel anyway ;)
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'domain.tld' => array (
'init' => array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => true,
'emptySegmentValue' => '-'
),
'pagePath' => array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'expireDays' => '3',
'rootpage_id' => '1',
'disablePathCache' => false,
'autoUpdatePathCache' => false,
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => true,
),
),
);
Rod Naugler
2011-11-02 22:24:27 UTC
Permalink
I read through the manual for realURL, and I understood how to apply
configuration options to an existing configurations but I wasn't able to
determine how to get started.

I hadn't seen the cbrealurl extension, I'll look into that.

Thanks!

Rod
Post by Victor Livakovsky
Hi, Rod.
1. Read the manual of realurl.
2. Use some pre-configuration, like cbrealurl extension.
3. Take this basic configuration and extend it to your needs by
reading the manuel anyway ;)
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'domain.tld' => array (
'init' => array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => true,
'emptySegmentValue' => '-'
),
'pagePath' => array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'expireDays' => '3',
'rootpage_id' => '1',
'disablePathCache' => false,
'autoUpdatePathCache' => false,
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => true,
),
),
);
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Sergey Alexandrov
2011-11-02 13:41:40 UTC
Permalink
Rod,

Such URLs should be produced by RealURL out-of-the-box (automatic
config). I don't remember if I only add 'defaultToHTMLsuffixOnPrev' => 1
or it was turned on by default :)
So, what kind of URLs you have now? What's the issue? Do you need to
configure RealURL for extensions you use?

Thank you,
Sergey
Post by Rod Naugler
Hi all,
For many years I was using a customized version of RealURL which
www.website.com/page1.html
www.website.com/page1/page2.html
www.website.com/page1/page2/page3.html
I have seen several posts here that seem to indicate that the latest
version of RealURL can do this natively. I have been forced to upgrade
one site to Typo3 4.5.7 which broke my previous RealURL so I have
loaded RealURL 1.11.2. I have gone through the manuals and I have
tried several configuration extensions but I have been unable to
properly configure RealURL to produce the proper URLs. Can anyone help
me out?
Thanks!
Rod Naugler
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Rod Naugler
2011-11-02 22:29:19 UTC
Permalink
I don't need to configure realURL for any extensions. I installed and
activated the extension using the default setup from the manual. The
URLs I'm getting are:
www.website.com/page1/
www.website.com/page1/page2/
www.website.com/page1/page2/page3/

I've really gotten away from Typo3 over the past couple of years and
this is a fixup for a site who's host upgraded to PHP5. The site in
question is http://weddingsinfrance.com

Can I just copy/rename the default configuration and tweak it from there?
The addition you mention below, is that in the template or in the config?

Thanks!

Rod
Post by Sergey Alexandrov
Rod,
Such URLs should be produced by RealURL out-of-the-box (automatic
config). I don't remember if I only add 'defaultToHTMLsuffixOnPrev' =>
1 or it was turned on by default :)
So, what kind of URLs you have now? What's the issue? Do you need to
configure RealURL for extensions you use?
Thank you,
Sergey
Post by Rod Naugler
Hi all,
For many years I was using a customized version of RealURL which
www.website.com/page1.html
www.website.com/page1/page2.html
www.website.com/page1/page2/page3.html
I have seen several posts here that seem to indicate that the latest
version of RealURL can do this natively. I have been forced to
upgrade one site to Typo3 4.5.7 which broke my previous RealURL so I
have loaded RealURL 1.11.2. I have gone through the manuals and I
have tried several configuration extensions but I have been unable to
properly configure RealURL to produce the proper URLs. Can anyone
help me out?
Thanks!
Rod Naugler
_______________________________________________
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
Sergey Alexandrov
2011-11-03 14:47:17 UTC
Permalink
Rod,

Yes, save the original config, then edit default. There is 'fileName'
array, where 'defaultToHTMLsuffixOnPrev' switches .html . Set it to 1
and you should be ok:

'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
'index' =>
array (
'print' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
),
),
Post by Rod Naugler
I don't need to configure realURL for any extensions. I installed and
activated the extension using the default setup from the manual. The
www.website.com/page1/
www.website.com/page1/page2/
www.website.com/page1/page2/page3/
I've really gotten away from Typo3 over the past couple of years and
this is a fixup for a site who's host upgraded to PHP5. The site in
question is http://weddingsinfrance.com
Can I just copy/rename the default configuration and tweak it from there?
The addition you mention below, is that in the template or in the config?
Thanks!
Rod
Rod Naugler
2011-11-03 23:41:59 UTC
Permalink
OK, I found the problem. There were some hanging on files and settings
from the upgrade that were causing a host of problems. Removed all
configuration extensions, realURL and any mention of realURL in
localconf.php as well as all ext files for anything related. Then loaded
realURL from the server again. Everything came in looking like its
described in the manual this time and that easy change worked. No wonder
I couldn't follow the directions. What I was seeing wasn't the same! :)

Thanks!

Rod
Post by Sergey Alexandrov
Rod,
Yes, save the original config, then edit default. There is 'fileName'
array, where 'defaultToHTMLsuffixOnPrev' switches .html . Set it to 1
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
'index' =>
array (
'print' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
),
),
Post by Rod Naugler
I don't need to configure realURL for any extensions. I installed and
activated the extension using the default setup from the manual. The
www.website.com/page1/
www.website.com/page1/page2/
www.website.com/page1/page2/page3/
I've really gotten away from Typo3 over the past couple of years and
this is a fixup for a site who's host upgraded to PHP5. The site in
question is http://weddingsinfrance.com
Can I just copy/rename the default configuration and tweak it from there?
The addition you mention below, is that in the template or in the config?
Thanks!
Rod
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Dmitry Dulepov
2011-11-04 13:39:35 UTC
Permalink
Hi!
Removed all configuration extensions, realURL and any mention of realURL
in localconf.php as well as all ext files for anything related. Then
loaded realURL from the server again. Everything came in looking like
its described in the manual this time and that easy change worked.
This is exactly why I always advise against using ANY of "configuration",
"bug fixing" or "improvement" extensions. They usually do more harm than good.
--
Dmitry Dulepov
TYPO3 core&security teams member
Blog: http://dmitry-dulepov.com/
Twitter: http://twitter.com/dmitryd

Simplicity will save the world.
Dmitry Dulepov
2011-11-03 08:29:53 UTC
Permalink
Hi!
Post by Rod Naugler
I have seen several posts here that seem to indicate that the latest
version of RealURL can do this natively.
It could do this for recent 4 years.
--
Dmitry Dulepov
TYPO3 core&security teams member
Blog: http://dmitry-dulepov.com/
Twitter: http://twitter.com/dmitryd

Simplicity will save the world.
Loading...