Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. Share your own thoughts and experience, accounts may be terminated for violations.
  • Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

.htacess help

Status
Not open for further replies.
Joined
Aug 12, 2008
Posts
1,092
Reaction score
48
I'm pulling my hair out with a 301 redirect. I've done it for all the kefalonia.co.uk urls except one....

Code:
redirect 301 /accomod%20lakithra.htm http://www.kefalonia.co.uk/accommodation-in-lakithra

for some reason http://www.kefalonia.co.uk/accomod lakithra.htm is not going to http: //www.kefalonia.co.uk/accommodation-in-lakithra

Can you help?

Thanks in advance
 
Hi Mate

it's the %20 in place of the space that's the problem try this instead

HTML:
redirect 301 "/accomod lakithra.htm" http://kefalonia.co.uk/accommodation-in-lakithra/
 
RedirectMatch 301 ^/accomod%20lakithra.htm(/\?)$ /accommodation-in-lakithra/
 
Hi Mate

it's the %20 in place of the space that's the problem try this instead

HTML:
redirect 301 "/accomod lakithra.htm" http://kefalonia.co.uk/accommodation-in-lakithra/

Hi mate this doesn't work as leaving a space causes errors.

RedirectMatch 301 ^/accomod%20lakithra.htm(/\?)$ /accommodation-in-lakithra/

This doesn't work either unfortunately.
 
that's a shame - tried it out on my server first before I posted and it worked for me. I thought the quotation marks would allow the space :confused:
 
that's a shame - tried it out on my server first before I posted and it worked for me. I thought the quotation marks would allow the space :confused:

Fraser it worked, I didn't put the quotation marks initially!

Thanks for the help folks!
 
Status
Not open for further replies.
Top Bottom