[TYPO3] Problem with realUrl on iis
Melgior
melgior at hotmail.com
Thu Nov 29 13:37:40 CET 2007
There's your problem: your rewrite rule only works on links ending in .html
and currently typo3 generates URL's with just directory's, not .html. You
can do two things: change the typo3 config to generate .html links (check
the realurl documentation [1] about the filename directive to know how to do
this) or change your rewrite config to catch all URL's, including the one's
not ending on .html
Personally, I use the rewrite configuration below. It redirects every URL
except from TYPO3 directories (fileadmin, t3lib, media) to TYPO3 so that it
can be parsed by the RealURL plugin.
# RealURL: rewrite pages with parameters
RewriteRule
^/(?!typo3.*|media|fileadmin|t3lib|uploads|index\.php|robots\.txt|favicon\.ico)(.*)\?(.*)
/index.php\?$2 [U,L]
# RealURL: rewrite pages without parameters
RewriteRule
^/(?!typo3.*|media|fileadmin|t3lib|uploads|index\.php|robots\.txt|favicon\.ico)(.*)
/index.php [U,L]
The lines starting with # are just comments btw.
[1]
http://typo3.org/documentation/document-library/extension-manuals/realurl/1.2.1/view/1/2/#id3693281
Brian Bendtsen-4 wrote:
>
> Melgior skrev:
>> Looks like Typo3 is correctly configured, but your rewrite configuration
>> doesn't work. Is there any info in the isapi_rewrite error log
>> (httpd.parse.errors)? If not, could you please give an example of an URL
>> that gives a 404?
>
> Hi
>
> Press any link in the menu and an error will appear:
> http://typo3.mentor-it.dk/index.php?id=14
>
> I dont have a httpd.parse.errors file.
>
> /BB
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
--
View this message in context: http://www.nabble.com/Problem-with-realUrl-on-iis-tf4888671.html#a14025059
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list