---
title: "bzgl. RealUrl - Links bei MouseOver ok, aber dann 404 Error"
url: "https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL","Weiterleitungen & 404"]
created: "2007-11-29"
last_reply: "2007-11-29"
replies: 7
solved: false
page: 1
pages: 1
lang: "de"
---

# bzgl. RealUrl - Links bei MouseOver ok, aber dann 404 Error

Extensions · 7 Antworten · gestartet 2007-11-29

## Eröffnungsbeitrag

**icepm** · 2007-11-29 · [Beitrag #1](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/1)

Hi,

also ich hab RealUrl installiert.
Hab in ._htaccess folgendes:

```html
#####
# 
# Example .htaccess file
# 
# This file contains a collection of almost everything you will need
# for optimising TYPO3:
# 
# - mod_rewrite (used for SimulateStaticDocuments, RealUrl, etc.)
# - PHP optimisation
# 
# If you want to use it, you'll need to rename this file to '.htaccess'.
# (To make this work you will need to adjust the 'AllowOverride'
# directive in your Apache configuration file.)
# 
# IMPORTANT: You may need to change this file depending on your TYPO3
# installation!
# 
# You should change every occurance of TYPO3root/ to the location where you
# have your website in. For example:
# If you have your website located at http://mysite.com/
# then your TYPO3root/ is just empty (remove 'TYPO3root/')
# If you have your website located at http://mysite.com/some/path/
# then your TYPO3root/ is some/path/ (search and replace)
# 
# If you have problems with this file, try using the minimal
# mod_rewrite.htaccess which is located in the typo3_src/misc/
# directory of this installation.
# 
# You can also use this configuration in your httpd.conf, but you'll have
# to modify some lines, see the comments (search for 'httpd.conf')
# 
# Using rewriting in your httpd.conf is much faster, btw.
# 
# Questions about this file go to the matching Install mailing list,
# see http://typo3.org/documentation/mailing-lists/
# 
####

### Begin: Rewrite stuff ###

# Enable URL rewriting
RewriteEngine On

# To assist in debugging rewriting, you could use these lines
# DON'T enable it for production!
# This will only work in httpd.conf, not in .htaccess files
#RewriteLog /var/log/apache/rewrite.log
#RewriteLogLevel 9

# If you use the RealUrl extension, then you'll have to enable the next line.
# You will have to change this path if your TYPO3 installation is located
# in a subdirectory of the website root.
# 
# If you place this in httpd.conf, you cannot use this directive in any case!
#RewriteBase /

# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]

# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php
# and stop the rewrite processing
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3$ typo3/index_re.php [L]

# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.

# If you use Windows and SimulateStaticDocuments do not work, try adding a
# slash (/) right before 'index.php' below.

# The example shows how to rewrite only *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# Example: RewriteRule .*\.(html|pdf)$ index.php [L]

# For httpd.conf, use this line instead of the next one that has no '#':
# RewriteRule .* /TYPO3root/index.php [L]

# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one:
# RewriteRule .* /index.php [L]

RewriteEngine On
Options +FollowSymLinks
 

RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteRule ^(typo3|banner|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/     - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (\.html|/)$ index.php
#RewriteRule .* index.php 



### End: Rewrite stuff ###

### Begin: PHP optimisation ###

# All features below are left to the default if you don't change this.
# Simply remove the comment marks if you want to use some/all of these
# settings

# The PHP developers recommend disabling this feature. Do that.
# It's deprecated and is likely to be unsupported in future versions of PHP.
#php_flag allow_call_time_pass_reference off

# TYPO3 works fine with register_globals turned off.
# This is highly recommended!
#php_flag register_globals off

# PHP may not declare the argv & argc variables (that would contain the GET
# information).
# TYPO3 doesn't need this, so just turn it off.
#php_flag register_argc_argv off

# Magic quotes for runtime-generated data (data from SQL, exec(), etc.)
#php_flag magic_quotes_gpc off

# Order in which PHP registers GET, POST, Cookie and Built-in variables
#php_value variables_order GPCS

### End: PHP optimisation ###

### Begin: Miscellaneous ###

# Make sure that directory listings are disabled
#Options -Indexes

# There is a problem with Internet Explorer and mod_gzip on Apache servers.
# For more information, see
# http://typo3.org/documentation/document-library/rtehtmlarea/Tutorial-79/
#mod_gzip_item_exclude file \.css$
#mod_gzip_item_exclude file \.png$
#mod_gzip_item_exclude file \.gif$
#mod_gzip_item_exclude file \.jpg$
#mod_gzip_item_exclude file \.jpeg$
#mod_gzip_item_exclude file \.js$

### End: Miscellaneous ###

# Add your own rules here
# ...
```

dann hab ich folgendes in der ext_localconf.php:

```php
<?php

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

// Include configuration file
$_realurl_conf = @unserialize($_EXTCONF);
if (is_array($_realurl_conf)) {
	$_realurl_conf_file = trim($_realurl_conf['configFile']);
	if ($_realurl_conf_file && @file_exists(PATH_site . $_realurl_conf_file)) {
		require_once(PATH_site . $_realurl_conf_file);
	}
	unset($_realurl_conf_file);
}

define('TX_REALURL_AUTOCONF_FILE', 'typo3conf/realurl_autoconf.php');
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'])) {
	@include_once(PATH_site . TX_REALURL_AUTOCONF_FILE);
}

unset($_realurl_conf);

?>
```

Und im Typoscript hab ich folgendes:

```typoscript
# RealURL aktivieren
config.simulateStaticDocuments = 0
config.baseURL = http://www.ulf-konzept.de/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all 
page.stylesheet = uploads/tf/main.css
```

Hab auch schon mehrere Beiträge zum gleichen Problem gefunden, aber irgendwie keine Lösung für mein Problem.

Wär super wenn mir jemand helfen könnte.

Ich bedank mich schon mal für Eure Hilfe.
Lg

## Antworten

### [#2](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/2) · einpraegsam.​net · 2007-11-29

> **icepm schrieb:**
>
> ._htaccess folgendes:

Ohne mich durch deinen Code zu wühlen - die htaccess muss exakt in dieser Schreibweise auf deinem Server liegen:
.htaccess

### [#3](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/3) · icepm · 2007-11-29

Also wenn deine Aussage heißt, dass die ._htaccess auf dem server liegen soll.
Die liegt so im Hauptverzeichnis meines Servers.
Hab auch phpinfo gemacht.
kann man sich auch unter www.ulf-konzept.de/test.php anschauen.
sprich moderewrite funktioniert auf dem server auch.
ich kapier aber nicht was des problem ist.
lg

### [#4](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/4) · just2b · 2007-11-29

benenn die _.htaccess in .htaccess um

georg

### [#5](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/5) · icepm · 2007-11-29

also hab nun die _.htaccess in .htaccess umbenannt.

dann erscheint nun keine 404 fehlermeldung mehr sondern folgendes:

**Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log**

Also liegt es nicht an der Bennung von htaccess oder doch und wenn doch weswegen kommt nun der Internal Server Error.

Lg

### [#6](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/6) · einpraegsam.​net · 2007-11-29

> **icepm schrieb:**
>
> Also liegt es nicht an der Bennung von htaccess oder doch und wenn doch weswegen kommt nun der Internal Server Error.

Doch, die htaccess muss so bleiben! Jetzt musst du diese nur richtig einrichten. Hast du die standard TYPO3 _.htaccess zu .htaccess umbenannt? Wenn ja, dann beim Provider nachhaken...

### [#7](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/7) · icepm · 2007-11-29

ich hab ja die _.htaccess in .htaccess verändert.
es funktioniert auch, dass im menü, richtige *.html links erzeugt werden.
aber eben diese links die erzeugt werden kann man nicht öffnen, da kommt ein 404 error.
an was liegt denn des bitte.
hat denn hier keiner ne idee?
lg

### [#8](https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error/8) · icepm · 2007-11-29

hab den Fehler nun selber gefunden.

in meiner .htaccess hatte ich die  RewriteBase / auskommentiert.
Die muß aber dabei seien.
Nun funzt es.
Danke aber dennoch für eure Hilfe.

Lg

---

Quelle: „bzgl. RealUrl - Links bei MouseOver ok, aber dann 404 Error“, typo3.net, https://www.typo3.net/d/71036-bzgl-realurl-links-bei-mouseover-ok-aber-dann-404-error
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
