New answers tagged mod-rewrite
You need to change your Redirect (mod_alias) to RewriteRule (mod_rewrite). Something like: RewriteRule ^word1/word2/word3 /word1/word2 [R=301,L] (Put back example/ if you wish, but it looked like a typo to me?) The problem you are experiencing is that mod_rewrite (nearly) always executes before mod_alias, regardless of the order of directives in your ...
RewriteEngine on RewriteRule ^/site/(.*) /~username/site/$1 [PT] That code should be going into .htaccess, not httpd.conf. Try that, and it should fix your issue.
The way which I hide that type of issue is by using .htaccess, and it actually works mighty well. The code comes from my webhost, and you have to make some slight edits to fix it up to work, but it should work for you also. # .htaccess main domain to subdirectory redirect # Do not change this line. RewriteEngine on # Change example.com to be your main ...
You define a rule backwards, so this is not working. The syntax is as following: This would work, but will most likely break your magento (as all urls with a dash "-" in it will be rewritten): RewriteRule ^/(.*)-(.*)$ /parent-category/sub-category/$2/$1 [L,NC] So I would suggest putting it under some kind of static keyword, like "shop", so when you ...
You need to have a web server running at www.domain.com:81, and create a .htaccess file there.
On domain.com:81 create .htaccess file (where site/ is): RewriteEngine on RewriteRule (.*) http://domain.com:80/$1 [P,L] With this when you go to domain.com:81 the site will proxy to domain.com.
Top 50 recent answers are included