I am new in .htaccess
. I have read the documentation, but couldn't make the redirect rule work.
I want RewriteRule
for following
http://mywebsite.com/restaurants/59393/the-grounds-of-alexandria.htm
to
http://mywebsite.com/restaurants/the-grounds-of-alexandria
I have tried out this
RewriteRule ^(.*)/[0-9]/(.*)$ ^(.*)/(.*)/$ [R=301,L]
Also how can u get the subdomain and put it to the front of all links, like this
http://sydney.mywebsite.com/restaurants/59393/the-grounds-of-alexandria.htm
to
http://mywebsite.com/sydney/restaurants/the-grounds-of-alexandria
but no result.