[TYPO3] Real url configuration on the local pc
Rocky Ou
rockysynergy at max-source.com
Wed Jun 13 10:58:17 CEST 2007
Thank you very much for your reply!
Well actually it does not work for http://localhost/~user/. After
RewriteEngine On I have to add RewriteBase /~user
For more information see
http://rockymx.easternpeople.com/labels/TYPO3.html
Blessings,
Rocky
AndreasBecker wrote:
> Hi Rocky
>
> That's what we are using on Production or local servers windows or linux
> and
> it works fine:
>
> ### Rewriting Stuff ###
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteRule
> ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ -
> [L]
> RewriteRule
> ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$
>
> - [L]
> RewriteRule ^typo3$ typo3/index_re.php [L]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> # Main URL rewriting.
> RewriteRule .* index.php [L]
>
> ### End: Rewrite stuff ###
>
> ### PHP Optimisation ###
>
> # TYPO3 works fine with register_globals turned off.
> # This is highly recommended!
> php_flag register_globals On
>
> # 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
> # ..
More information about the TYPO3-english
mailing list