What to wear
Generally
Three things will influence what you wear. The local culture; the weather and exactly where you are.
Egypt is a Muslim country. The culture and dress code are not as strict in Egypt as in some muslim countries but it is still necessary to be modest, especially for ladies.
You will read that people have been to Luxor and have worn exactly what they want, where they want, and nobody cared. The truth is that many people probably cared a great deal but didn't say anything. Just because they didn't hear what people were saying about them doesn't mean it is the right thing to do.
It is much better to be sensitive to local culture and to dress in a way that will avoid offence.
Luxor is hot. Even in the winter, temperatures are generally high during the day so you will need light cottons at any time of the year. In some months, around October - March, it can get cooler in the evening and overnight. You can also feel the chill on a cruise boat and on the overnight train, because they tend to turn the air conditioning to freezing! So for any of these occasions, take a fleece or a jumper as well.
Men in Luxor
For men, what to wear is less of an issue than it is for women. Normal trousers and shirt, T-shirt or polo are fine. Make sure they are lightweight and natural fibres - cotton is best. Polyester or any similar artificial fabric will become uncomfortable very quickly.
By all means wear shorts in the hotel. Lots of people also wear them along the Corniche (the 'prom' beside the river) but most people would wear full length trousers in town. Certainly wear full-length trousers in mosques.
Women in Luxor
You will get away with wearing pretty well anything in Luxor, because the local people are getting used to all sorts of things that are not really appropriate. But if you want advice on what is best to wear, rather than what you can get away with, then the advice is to dress modestly. Apart from the need to respect local custom and religion there are two other benefits from modest clothing. First, it will protect you from the sun. The sun is fierce most of the time and will soon damage exposed, unprotected skin. Second, the more modest you are the less attention you will attract.
A basic wardrobe would be loose cotton or linen trousers and/or a longish skirt and tops with sleeves that are at least half-length. No-one expects you to cover your face. Nor do you have to cover your head. However, you should not expose cleavage or thighs and preferably also cover knees and elbows. Clothing, such as blouses, should not be transparent.
It is useful to carry a pashmina or shawl to help with covering up when you go to sensitive places, such as temples, or if you find yourself amongst a group of 'admiring' men.
Shoes
You will need 'practical' shoes. The roads and pavements are not tremendous (but improving in places) and most of the sights require trampling over unmade ground. Comfortable shoes or trainers with sturdy soles are best. Sandals are OK in the hotels and on cruises, but there is lots of sandy dust so they will become uncomfortable in town.
Holy Places
It is always necessary to dress modestly to enter a mosque. Some mosques have their own dress code that require more covering-up than the norm. This is where the pashmina or shawl comes in handy. Remove your shoes when you go in.
Cruise boats
The dress code is much more relaxed on a cruise boat than it is in town. Dress as though you were in the hotel. Shorts, swimming costumes, bikinis are all fine, but have something handy to cover up for when the ship gets to a town.
On four and five-star ships it is normal to dress up slightly for the evening meal. Few people would go as far as a tie for men or a long dress for women, but smart casual is expected. Long-sleeved shirt and full length trousers for men, dress, trousers or skirt with blouse for women.
Touring
Whereas Luxor is an ancient city with tourists, the Red Sea resorts like Sharm El Sheik and Hurghada are primarily tourist places and the dress code is much more relaxed. Shorts and T-shirts are fine for both genders but any form of nudity is illegal.
When travelling from Luxor to other resorts you will go through traditional towns and villages, where the dress is normally more conservative than it is in Luxor, so on the bus or in the car, be ready to cover up.
Cairo is a city where dress is modest and business-like. It would not be thought acceptable for men or women to wear shorts or vest-type T-shirts.
See also ....
Weather
Of course, exactly what you wear will also depend on the weather. For more on the weather look at the weather page.
Culture
What you wear will be influenced by the local culture. There is more on the culture page.
Where from?
A company that comes out well in lots of consumer reports dealing with travel clothing is Rohan. They sell light cottons for men and women that are reputed to be amongst the best when it comes to comfort and not having to iron them! Not cheap though.
Flight socks
For reducing health risks on the flights there and back, Sock Shop have a selection of flight socks for men and women.