Hi, I have 1 domain only, but i'd like the domain name : www.domain.co.uk to point to a particular page eg: www.domain.co.uk/start/index.htm What code to i use? I've seen code that uses just a slash ( / ) but wont that move everything from the domain where i want it to go? At the moment when people click on www.domain.co.uk there is one of those scripts php i think that redirects it, but there is a 1 second delay, so i'd like to change it on a permanent basis with the 301. Any help appreciated. Regards FB
Try this: RewriteEngine On rewritecond %{http_host} ^www.domain.co.uk [nc] rewriterule ^$ http://www.domain.co.uk/start/index.htm [r=301,nc] Code (markup):
i tried that but it didnt work instead all files and folders of my directory appeared. Any suggestions? thankz
You need to produce an index.html file in the root file (as that is were your browser and search bot will automatically look) Use this code for the page: <html> <head> <meta HTTP-EQUIV="refresh" content="0;URL=start/index.htm"> <title>Put the website name here</title> <meta name="Classification" content="Internet"> <meta name="Robots" content="noindex,follow"> <meta name="Pragma" content="no-cache"> <meta name="Language" content="en"> </head> </html> Code (markup):