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 16: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 16: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 15: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 11: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

Nice fonts using Google font API geändert am  20-May-2010 16:36:47
TS-based Searchbox for Indexed Search  geändert am  18-May-2010 18:27:15
TYPO3 SEO geändert am  30-Apr-2010 09:44:22
Search engine friendly graphical headers in TYPO3 geändert am  30-Apr-2010 09:33:44
Creating a simple Infocenter using TYPO3 geändert am  17-Nov-2009 12:12:52
Making the Section Menu work correctly with TemplaVoila geändert am  05-May-2009 12:27:17
Show pages with type "Not in Menu" in a sitemap geändert am  05-May-2009 12:11:17
Implementation of the DHTML menu from brainjar.com  geändert am  01-Feb-2009 14:02:48
Sample DHTML menu geändert am  01-Feb-2009 13:51:25
A introduction to the CONTENT object geändert am  26-Jan-2009 13:20:39

Latest comments

21-Jan-2012 20:22:24
jemmkwc jemmkwc schrieb: MOGWOX , [url=http://prdpuhwzxyrc.com/]prdpuhwzxyrc[/url],...
fe_useradmin form does not save
20-Jan-2012 20:35:32
fsivjktiuld fsivjktiuld schrieb: idCmnv <a href="http://gakbrrkrxhye.com/">gakbrrkrxhye</a>
fe_useradmin form does not save
19-Jan-2012 18:05:25
bvffee bvffee schrieb: jl2vQt , [url=http://xcinvpbclrbm.com/]xcinvpbclrbm[/url],...
External links and shortcuts directly in the menu
Deutsch
Search: