[TYPO3-english] RealUrl rewrite gives 404 page not found

David Bruchmann david.bruchmann at gmail.com
Mon Nov 16 12:55:50 CET 2015


> Hi,
>
> I have to identical sites on the same server, one is a test-site (with its
> own domain name) and the other is a live production-site. RealUrl is
> working fine on the test-site and on the production site the links are
> rewritten fine, but not showing the page requested just offering a 404 page
> not found error! Strange because the production site is a copy of the
> test-site.
>
> So did some extensive search to find the mistake. But everything seems to
> be the same. Both the RealUrlconfig.files are the same, the .htaccess file,
> the Apache2 2.4 <vhost> settings) and even the dns setting are the same,
> setting in the TSconfig are exactly the same.
> Strange thing is dough that the url for the live site is rewriting the
> domain-name from website.site towards www.website.site which is not
> happening for the test site (had to add a domain record to the root-page).
> Could this cause the problem? Strange thing is, that I have for both
> domains in the dns settings an A record and an CNAME record so they both
> should act the same on requesting the domain-name without www right? I also
> did test it with Autoconfig but that gave the same result.
>
> Anyone who experienced this behavior and has a solution? Or hints for
> where to look or solve this issue.
>
>
Hi,

for realUrl it would be better to have two completely different sites,
where page-names of both sites never have a same name at all.
These things you've todo:

   - assign  a different (sub-) domain for each site
   - setup realUrl like described in the manual with baseUrl in the general
   config-area etc.
   - set for both sites the domainRoot like described in the manual
   - Insert domain-records in the sites that Typo3 delivers the right site
   for each domain.

I've my doubts that you get it running without two different domains while
keeping the site-names and NEVER assigning any aliases, I suppose it's just
impossible.

Furthermore it could be required that you setup each domain separated in
the config-file of realUrl - there you've to setup the domainRoots anyway.

I never looked up any names of variables and names for
configuration-parameters. If you never find what I wrote, search by meaning
and not by writing.

Forget about anything like CNAME or other domain/server settings, realUrl
just never has enough data to deliver different pages with the same names,
therefore you just have to configure two different branches, each with an
own domain.

Best Regards,

David


More information about the TYPO3-english mailing list