[TYPO3-english] RealURL - problem with rewrite in .htaccess
Ilya Smirnoff
ilya.smirnoff at gmail.com
Wed Apr 6 11:26:48 CEST 2016
Hello
I have site on TYPO3 6.2.9 with RealURL
And for one URL - http://domain.ru/myblog/title (this URL created by RealURL) I need rewrite to other URL
http://domain.ru/newblog/ (this is external URL, not in TYPO3)
I mean then user enter http://domain.ru/myblog/title he stay on this URL, but page content must be from new URL - http://domain.ru/newblog/
Without TYPO3 this trick worked tith simple rule:
RewriteCond %{REQUEST_URI} ^/myblog/title
RewriteRule ^ /newblog/title [L]
But TYPO3 it's doesn't work preperly :(
I delete other rules and now my .htaccess (in TYPO3 root directory) is:
RewriteEngine On
RewriteBase /
Options -Indexes
AuthType Basic
AuthName "restricted area"
AuthUserFile /var/www/dev.domain.ru/.htpasswd
require valid-user
RewriteCond %{REQUEST_URI} ^/myblog/title
RewriteRule ^ /newblog/title [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond %{REQUEST_URI} !html$
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
#TYPO3
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
Thanks in advance.
More information about the TYPO3-english
mailing list