April 28, 201214 yr Hello, Im useless at htaccess as youll be able to tell by the end of my post I need a redirect code so that it does the following when directory /website/ is viewed i need it to be redirected to /website/home/ but NOT when the url /website/with something after it If that makes sense Cheers people +1 for anything usefull
April 28, 201214 yr RewriteEngine On RewriteBase / RewriteRule ^/website/$ /website/home/ [R=301,L] Something like that should do it Note that the / after the ^ might not be required, so if it doesn't work, remove that Edited April 28, 201214 yr by Jay Gilford
April 28, 201214 yr Author RewriteEngine On RewriteBase / RewriteRule ^/website/$ /website/home/ [R=301,L] Something like that should do it Note that the / after the ^ might not be required, so if it doesn't work, remove that Your a gem mate, the reason the code i was trying myself wasnt working was because i didnt have the ^ before and $ after the redirect directory Thanks
Create an account or sign in to comment