PDA

View Full Version : problems with .htaccess in 301 redirect


fence4fun
28th August 2009, 07:04
Hi all - just going through the process of changing servers from moonfruit to 123 reg and was advised to use a 301 in this thread (http://www.ukbusinessforums.co.uk/forums/showthread.php?t=123187) as my url page titles had changed despite my domain www.swordfightingevents.co.uk remaining the same e.g. /promotional_work.html/12334567 (moonfruit uses a sys generated id number after each title) became /promotional_events.html.

The problem is that I wrote my .htaccess file with a redirect line for each page but for some reason four of these aren't working. The problems seem to be random, for example, when I ask for /links/1234567 to go to /links.html it goes to /links.htm instead and gives a "page not found" error.

I've tried rewriting, checked urls and even started from scratch but it still won't work. Any ideas?

All help appreciated.

fisicx
28th August 2009, 07:35
Why not leave htaccess alone and change the filenames from html to htm?

fence4fun
28th August 2009, 08:22
Cheers - just done it and that's solved one of the problems. Other errors not caused by that are still there though.

fisicx
28th August 2009, 08:43
And the other errors are?

fence4fun
28th August 2009, 13:24
No worries - all sorted now.

Notepad was saving the file with a .txt addon so I've spotted it and changed it - all working now and thanks for your help.