VF DSL 468x60

Update from SimulateStatic to realurl

Submitting your vote...
Not rated yet. Be the first who rates this item!
Click the rating bar to rate this item.

When upgrading to realurl external links that point to a old SimulateStatic page are lost.

 

you can solve this by inserting following RewriteRule to your .htacccess

 

RewriteRule ([0-9]+)\.([0-9]+)\.html$ http://www.typo3wizard.com/index.php?id=$1&type=$2  [R=301,L]

 

 

This rule rewrites all urls with the format whatever[pageID].[typenum].html

 



Comments


Jody, 04-08-06 14:21:
I recently made the switch from SimulateStatic to realurl, and was excited to see your tip. Unfortunately, I can't get it to work. Here's my .htaccess file:

RewriteEngine On
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\\.php)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
RewriteRule ([0-9]+)\\.([0-9]+)\\.html$ http://www.oshkoshpubliclibrary.org/index.php?id=$1&type=$2 [R=301,L]

Do I have something wrong in there?

- jody
Tobias, 04-08-06 14:44:
hi jody,

the error you made is to put this rule after RewriteRule .* index.php [L]. RewriteRule .* index.php [L] maches everything and stops parsing the rewrite rule. Put the rule before RewriteRule .* index.php [L] and it will work as expected!
Jody, 06-08-06 13:38:
Hello,

I tried putting that before the RewriteRule .* index.php [L] line, and it still doesn't work. Is there something else I'm missing?

- jody
Tobias, 08-08-06 09:17:
I will post the working .htaccess for typo3wizard.com:


RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ([0-9]+)\\.([0-9]+)\\.html$ http://www.typo3wizard.com/index.php?id=$1&type=$2 [R=301,L]
RewriteRule (\\.html|/)$ index.php

Add comment

* - required field

*



*
*

Top 10 Updates

Creating a simple Infocenter using TYPO3 geändert am  17-Nov-2009 11:12:52
Making the Section Menu work correctly with TemplaVoila geändert am  05-May-2009 10:27:17
Show pages with type "Not in Menu" in a sitemap geändert am  05-May-2009 10:11:17
Implementation of the DHTML menu from brainjar.com  geändert am  01-Feb-2009 13:02:48
Sample DHTML menu geändert am  01-Feb-2009 12:51:25
A introduction to the CONTENT object geändert am  26-Jan-2009 12:20:39
Sample for dynamic image masks geändert am  16-Dec-2008 15:42:32
Useful Links geändert am  11-Dec-2008 10:06:17
Using Transparent PNG's in IE5/6 without JavaScript geändert am  04-Oct-2008 12:27:15
Using lightbox without extension geändert am  13-Jun-2008 14:20:51

Latest comments

23-Feb-2010 04:40:25
Janna schrieb: what about the css? I am still not clear how to link typoscript with the css. Kindly...
Text menu
05-Feb-2010 18:38:50
Martin Terber schrieb: Didn't work for me neither. I will try in TMENU now.
Alternativ sorting for menu items
27-Jan-2010 23:41:31
romx schrieb: U know its dob't work apply to Tmenu))
Alternativ sorting for menu items
Deutsch
Search: