Forum Moderators: phranque
only dir should be removed from the url is that possible?
TIA
Chris
only dir should be removed from the url is that possible?Sure.
Are you using the rules within a .htaccess in your document root? If so, you can use
RewriteRule ^dir/?(.*) /$1 [R=301,L] If you place the Rules in the ServerConfig, you should use
RewriteRule ^/dir/?(.*) /$1 [R=301,L] You should place this rule above all other rules.
This would also match if no trailing slash is used (/dir). Especially yahoo requests "folder paths" without the trailing slash). If you don't need this, you can remove the questionmark to
^dir/(.*) Bob