Forum Moderators: phranque
redirect 301 /Flash Studio/ http://www.example.com/
redirect 301 /Flash%20Studio/ http://www.example.com/
redirect 301 /Flash\ Studio/ http://www.example.com/
but either I get a 500 error or they don't redirect.
Is there a way to get htaccess to work with the space in the folder name?
My existing htaccess file without all the commented out bits is:
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
[edited by: jdMorgan at 5:35 pm (utc) on Aug. 11, 2007]
[edit reason] example.com [/edit]
Be aware that using two different rewriting/redirecting modules --mod_alias and mod_rewrite in this case-- is not a very "portable" solution. This is because on any given server, all mod_alias directives will be processed before any mod_rewrite directives or vice-versa, depending on the server configuration. So a mixed-module solution may work properly on one host but not on another, since the execution order of the two modules' directives may be reversed.
In other words, the order in which you place directives for different modules into your configuration code does not make any difference to their 'execution' order -- Each Apache module in turn will execute, handling only the directives that it recognizes in your config files. The module execution order is determined by the reverse LoadModule order on Apache 1.x, and by an internal priority scheme on Apache 2.x.
As a result, I recommend using mod_rewrite exclusively for both external redirects and internal rewrites if any internal rewrites (not supported by mod_alias) are required.
Jim