[TYPO3] How to create virtual directory using realUrl

Igor Solodovnikov IgorSolodovnikov at discussions.microsoft.com
Thu Jun 12 12:04:49 CEST 2008


Hi!

I have installed realUrl extensions and now trying to use it. I created  
two pages for testing with such urls:

http://site.com/link-target.html
http://site.com/news95.html

Every page has link to another page. So far all going fine. realUrl works.
Now i want to place my pages into virtual directory with name 'cms'. So  
new urls should be:

http://site.com/cms/link-target.html
http://site.com/cms/news95.html

In realUrl manual i found code sample to create virtual directory:

'preVars' => array (
   array(
     'type' => 'action',        // "type" action
     'index' => array(
       'cms' => '',    // Just bypass
     ),
   ),
),

I added this code to my real Url configuration. But it works only halfway:  
if i type page url (http://site.com/cms/news95.html) into browser's  
address line page is displayed correctly. But link to another page is  
generated wrong. Generated link is  http://site.com/-/link-target.html  
instead of http://site.com/cms/link-target.html.

What shold i change in realUrl configuration to get right links on my  
pages?
How to place each page in its own virtual directory?


More information about the TYPO3-english mailing list