Hi There, I've inherited a site that has spaces in all the directory names. how do i escape the spaces in the below so it will work. RewriteRule ^/Ngai Tahu Whanui/Natural Environment/Customary Fisheries/Regulations http://www.ngaitahu.iwi.nz/Ngai-Tahu-Whanui/Natural-Environment/Customary-Fisheries/ [R=301,L] if possible please write all the code i will need. I'ts my first day doing this. thanks in advance, Any help appreciated. Regards, simon.
Never tried it personally but I would suggest to try putting quote marks " " around the whole spaced directory structure
Escape the space with a backslash. RewriteRule ^/Ngai\ Tahu\ Whanui/Natural\ Environment/Customary\ Fisheries/Regulations ... Code (markup):
Awesome Joebert. Tested and it works. I spent all day looking for the solution and couldn't fine it anywhere. Very much appreciated.