Forum Moderators: phranque

Message Too Old, No Replies

Htaccess isn't redirecting to new files

cuts off the .com on the end

         

Lorel

7:28 pm on Oct 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am in the process of moving products out of a directory and to the root and while I'm doing that I'm also changing the file names as added products require a change in labeling.

I set up the following command in htaccess and it isn't working. Both the html and the css validate.

RewriteRule ^dining/widget\.htm$ [DOMAIN.com...] [R=301,L]

When I try to access the old page it wipes out the .com on the domain and the browser posts a message saying:

Safari can’t open the page “http://www.DOMAIN/dining-widget.htm” because it can’t find the server “www.DOMAIN”.

Can anyone tell me what I'm doing wrong?

[edited by: Lorel at 7:32 pm (utc) on Oct. 1, 2006]

jdMorgan

9:53 pm on Oct 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is notthing wrong with your code -- at least with the code you've shown.

If you have no other rules that could be coming into play, then your server is misconfigured or has a bad install of mod_rewrite. Check for Servername being incorrect, or "UseCanonicalName on", either of which might have something to do with it.

Jim