[TYPO3] RealURL and changing the address

Ryan Bilesky rbilesky at hotmail.com
Sun Sep 14 05:41:13 CEST 2008


I managed to uninstall RealURL, clear out the RealURL junk form the db and reinstall RealURL, the issues are fixed!  But I cannot get real url to work, right now my urls are index.php?id=(alias or pageid) which is atleast better than the issues I was having before, but here is what I want my URLS to look like:

www.mysite.com/pagealiasorname.html

and

www.mysite.com/pagealiasorname/subpagealiasorname.html

If that makes any sense, seems my old real url configuration isn't doing the trick, what I have now is:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
		'enableCHashCache' => 1,
		'enableUrlDecodeCache' => 1,
		'enableUrlEncodeHash' => 1,
//		'postVarSet_failureMode' => 'redirect_goodUpperDir',
		),
	'rewrite' => array(
		),
	'preVars' => array(
		/*
		array(
			'GETvar' => 'L',
			'valueMap' => array(
				'de' => '0',
				'de' => '1',
				'valueDefault' => 'de',
				),
			),
		*/
		),
	'pagePath' => array(
		'type' => 'user',
		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'expireDays' => 3
		),
	'fileName' => array (
		'defaultToHTMLsuffixOnPrev' => 1,
		'index' => array(
			'page.html' => array(
				'keyValues' => array (
					'type' => 1,
		        		),
				),
			),
		'print.html' => array(
			'keyValues' => array (
				'type' => 98,
				),
			),
		),
	'fixedPostVarSets' => array(
		),
	'postVarSets' => array(
		'_DEFAULT' => array(
			//archive
			'period' => array (
				array (
					'condPrevValue' => -1,
					'GETvar' => 'tx_ttnews[pS]',
					//'valueMap => array()
					),
				array (
					'GETvar' => 'tx_ttnews[pL]',
					//'valueMap => array()
					),
	  
				array (
					'GETvar' => 'tx_ttnews[arc]',
					'valueMap' => array(
						'non-archived' => -1,
						),
					),
	  			),
	  
			'browse' => array (
				array (
					'GETvar' => 'tx_ttnews[pointer]',
					),
				),
	  		'select' => array (
				array (
					'GETvar' => 'tx_ttnews[cat]',
					'lookUpTable' => array (
						'table'		=>	'tt_news_cat',
						'id_field'	=>	'uid',
						'alias_field'	=>	'title',
						'addWhereClause'=>	'AND NOT deleted',
						'useUniqueCache'=>	1,
						'useUniqueCache_conf'	=>	array (
							'strtolower'		=>	1,
							'spaceCharacter'	=>	'-',
							),
						),
					),
				),
	 		'article' => array( 
				array (
					'GETvar' => 'tx_ttnews[backPid]',
					// 'valueMap => array(
					// ),
					),
				array (
					'GETvar' => 'tx_ttnews[tt_news]',
					'lookUpTable' => array (
						'table'		=>	'tt_news',
						'id_field'	=>	'uid',
						'alias_field'	=>	'title',
						'maxLength'	=>	12,
						'addWhereClause'=>	'AND NOT deleted',
						'useUniqueCache'=>	1,
						'useUniqueCache_conf'	=>	array (
							'strtolower'		=>	1,
							'spaceCharacter'	=>	'-',
							),
						),
					),
				),
			),
		),  
	);

But that was for the older version of RealURL, any help is appreciated.
----------------------------------------
> From: rbilesky at hotmail.com
> To: typo3-english at lists.netfielders.de
> Date: Sat, 13 Sep 2008 19:26:35 -0700
> Subject: Re: [TYPO3] RealURL and changing the address
> 
> 
> Well I have become aware of a RealURL upgrade 1.5.1 which gets rid of the 404 error when I goto the url I want the page to be at with setting the alias but for some reason the menu of my site is not updating the url.  But the url based on the page title which was the old page url and what the menu has also works to get to the page.
> 
> The other thing is if I goto contact.html I don't get the contact page, I get its subpage which should be contact/request-info.html both urls lead to the request info page though, and in the menu both links goto contact.html for some reason.
> 
> ----------------------------------------
>> From: rbilesky at hotmail.com
>> To: typo3-english at lists.netfielders.de
>> Date: Sat, 13 Sep 2008 19:12:31 -0700
>> Subject: [TYPO3] RealURL and changing the address
>> 
>> 
>> Right now I am running typo3 version 4.2.1 with RealURL version 1.2.1
>> 
>> I have configured RealURL to key in off of the page alias but when I have changed the alias from some pages, the change is not registering, once in awhile the links will use the new alias but if you click them when they do you get a 404 error.  Any suggestions?
>> _________________________________________________________________
>> See how Windows Mobile brings your life together—at home, work, or on the go.
>> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 
> _________________________________________________________________
> See how Windows connects the people, information, and fun that are part of your life.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/


More information about the TYPO3-english mailing list