Zum Inhalt springen

Realurl: My Urls are not rewritten.

Erstellt am 27. November 2008 · Noch keine Antworten

Tags: RealURL, URLs & Routing, Frage, English

pcsystemd ·

Hello,

I installed RealUrl for the rewriting of my urls but it does not work. Note that I am local (localhost) and Apache2.

So first I added the mod_rewrite module in apache2 with:

a2enmod rewrite

then I checked with phpinfo () that mod_rewrite was loaded in the section apache2handler which is the case:
Loaded Modules

 core mod_log_config mod_logio mod_alias prefork http_core mod_so mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_owner mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 [b]mod_rewrite[/b] mod_setenvif mod_status mod_userdir 

then in my .htaccess I added:

# URL rewriting
                #
                # RewriteBase /
                  RewriteEngine On
                  RewriteRule ^/repertoiretypo/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php|favicon\.ico)/ - [L]
                  RewriteRule ^.*/typo3/.*$ - [L]
                  RewriteRule ^.*/typo3/$ - [L]

                   RewriteCond %{REQUEST_FILENAME} !-f [OR]
                   RewriteCond %{REQUEST_FILENAME} !-d [OR]
                   RewriteCond %{REQUEST_FILENAME} !-l

                   RewriteRule ^.*/$ /repertoiretypo/index.php [PT]

I then restart apache2 and I added my template code Typoscript following:

config.simulateStaticDocuments = 0
config.baseURL = http://localhost/repertoiretypo/
config.tx_realurl_enable = 1 

Then I installed the extension Urltool to create my configuration to a file called [b]urltoolconf_realurl.php[/b] taking care of obviously change the value rootpage_id by the id of my racine.In my [b]localconf.php[/b] ago l 'call to file a [b]urltoolconf_realurl.php[/b] include:

@ include (PATH_typo3conf. 'urltoolconf_realurl.php'); / / RealUrl-Setting inserted by extension aeurltool [/ code]

Yet this does not, my urls are not rewritten.

Have an idea you can come or the problem?

Thank you very much