Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

htaccess Redirects Causing Internal Sever Error

Featured Replies

I've got two versions of my website - one hyphenated, one not. I've always had my website on the hyphenated name, and the other had a <.*> rediect on the whole site.

I've just done a redesign and now is the time to do away with the hyphen in the name! So I've go the new site on the name I'd like to use, and I've written out quite a list of 301 redirects to send visitors to the new design. I can't do a complete forward on the whole site, as a photo sales CMS system still needs to run on the old domain, also any google links etc need to find their specific new page.

this new htaccess file causes me a 500 internal server error though. I can't figure out why though, it's the same htaccess file I always used, but with a longer list of redirects, thats all.

Any bad syntax in this file?

(I hope this makes sense!! Sorry for the long file to follow!!

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^lavenham-photographic\.co\.uk
RewriteRule ^(.*)$ http://www.lavenham-photographic.co.uk/$1 [R=permanent,L]

Options +ExecCGI
AddHandler cgi-script .cgi

ErrorDocument 404 /notfound.htm

redirect 301 /index.html http://www.lavenhamphotographic.co.uk/
redirect 301 /index.htm http://www.lavenhamphotographic.co.uk/
redirect 301 /wedding-photographer-suffolk-essex.htm http://www.lavenhamphotographic.co.uk/index.html#destination1
redirect 301 /wedding/photographer/suffolk-essex.htm http://www.lavenhamphotographic.co.uk/index.html#destination1
redirect 301 /faq.htm http://www.lavenhamphotographic.co.uk/frequently-asked-questions.html
redirect 301 /wedding-photos-online.htm http://www.lavenham-photographic.co.uk/view/index.php?category=gallery/weddings
redirect 301 /availability.htm http://www.lavenhamphotographic.co.uk/availability.html
redirect 301 /wedding/photographer/availability.htm http://www.lavenhamphotographic.co.uk/availability.html
redirect 301 /wedding-albums.htm http://www.lavenhamphotographic.co.uk/wedding-albums.html#albums
redirect 301 /wedding/albums.htm http://www.lavenhamphotographic.co.uk/wedding-albums.html#albums
redirect 301 /picture-frames.htm http://www.lavenhamphotographic.co.uk/wedding-albums.html#framing
redirect 301 /wedding/picture-frames.htm http://www.lavenhamphotographic.co.uk/wedding-albums.html#framing
redirect 301 /feedback.htm http://www.lavenham-photographic.co.uk/contact.htm http://www.lavenhamphotographic.co.uk/contact.html
redirect 301 /blog http://www.lavenhamphotographic.co.uk/blog/
redirect 301 /wedding-photography-photographer-venue-essex-suffolk-leez-gosfield-woodhall-smeetham-swan-kentwell-south-farm-newland-parklands-preston-ravenwood-milden-fennes.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/venue-suffolk-essex.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding_video_cars_transport_florists_catering_band_essex_suffolk.htm http://www.lavenhamphotographic.co.uk/wedding-video-links.html
redirect 301 /wedding/video-links.htm http://www.lavenhamphotographic.co.uk/wedding-video-links.html
redirect 301 /wedding/venue-essex-suffolk.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/terms.htm http://www.lavenhamphotographic.co.uk/terms-and-conditions.html

redirect 301 /wedding/photographer/orwell-park/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/tattersalls/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/forty-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/leyla-yakoot-forty-hall-enfield-march-wedding-photography-by-lavenham-photographic/
redirect 301 /wedding/photographer/boreham-house/index.htm http://www.lavenhamphotographic.co.uk/blog/emma-chris-boreham-house-november-wedding-photographed-by-lavenham-photographic/
redirect 301 /wedding/photographer/seckford-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/lottie-carl-seckford-hall-wedding-photography-by-lavenham-photographic/
redirect 301 /wedding/photographer/venue-suffolk-essex.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_leez_priory_chelmsford_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Leez+Priory
redirect 301 /wedding/photographer/leez-priory/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Leez+Priory
redirect 301 /photographer/album_leez_priory_chelmsford_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Leez+Priory
redirect 301 /wedding/photographer/leez-priory/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Leez+Priory
redirect 301 /photographer/video_gosfield_hall_braintree_chelmsford_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Gosfield
redirect 301 /wedding/photographer/gosfield-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Gosfield
redirect 301 /photographer/album_gosfield_hall_braintree_chelmsford_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Gosfield
redirect 301 /wedding/photographer/gosfield-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Gosfield
redirect 301 /photographer/video_swan_hotel_lavenham_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Swan
redirect 301 /wedding/photographer/swan-hotel/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Swan
redirect 301 /photographer/album_swan_hotel_lavenham_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Swan
redirect 301 /wedding/photographer/swan-hotel/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Swan
redirect 301 /photographer/video_woodhall_manor_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/nicola-ben-woodhall-manor-wedding-photography/
redirect 301 /wedding/photographer/woodhall-manor/index.htm http://www.lavenhamphotographic.co.uk/blog/nicola-ben-woodhall-manor-wedding-photography/
redirect 301 /photographer/video_kentwell_hall_long_melford_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/caroline-david-kentwell-hall-bull-hotel-long-melford/
redirect 301 /wedding/photographer/kentwell-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/caroline-david-kentwell-hall-bull-hotel-long-melford/
redirect 301 /photographer/album_kentwell_hall_long_melford_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/caroline-david-kentwell-hall-bull-hotel-long-melford/
redirect 301 /wedding/photographer/kentwell-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/caroline-david-kentwell-hall-bull-hotel-long-melford/
redirect 301 /photographer/video_newland_hall_chelmsford_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/kathryn-richard-newland-hall-wedding-photography-lavenham-photographic/
redirect 301 /wedding/photographer/newland-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/kathryn-richard-newland-hall-wedding-photography-lavenham-photographic/
redirect 301 /photographer/video_fennes_estate_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Fennes
redirect 301 /wedding/photographer/fennes/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Fennes
redirect 301 /photographer/album_fennes_estate_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Fennes
redirect 301 /wedding/photographer/fennes/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Fennes
redirect 301 /photographer/video_parklands_essex_quendon_park_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/emma-mikael-parklands-quendon-hall-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/parklands-quendon/index.htm http://www.lavenhamphotographic.co.uk/blog/emma-mikael-parklands-quendon-hall-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/album_parklands_essex_quendon_park_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/emma-mikael-parklands-quendon-hall-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/parklands-quendon/index.htm http://www.lavenhamphotographic.co.uk/blog/emma-mikael-parklands-quendon-hall-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/video_crabbs_barn_kelvedon_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Crabbs+Barn
redirect 301 /wedding/photographer/crabbs-barn/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Crabbs+Barn
redirect 301 /photographer/album_crabbs_barn_kelvedon_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/?s=Crabbs+Barn
redirect 301 /wedding/photographer/crabbs-barn/index.htm http://www.lavenhamphotographic.co.uk/blog/?s=Crabbs+Barn
redirect 301 /photographer/video_south_farm_royston_hertfordshire_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/caroline-babor-south-farm-royston-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/south-farm/index.htm http://www.lavenhamphotographic.co.uk/blog/caroline-babor-south-farm-royston-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/album_south_farm_royston_hertfordshire_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/caroline-babor-south-farm-royston-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/south-farm/index.htm http://www.lavenhamphotographic.co.uk/blog/caroline-babor-south-farm-royston-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/video_smeetham_hall_sudbury_suffolk_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/emma-chris-smeetham-hall-wedding-photography-lavenham-photographic/
redirect 301 /wedding/photographer/smeetham-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/emma-chris-smeetham-hall-wedding-photography-lavenham-photographic/
redirect 301 /photographer/album_smeetham_hall_sudbury_suffolk_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/emma-chris-smeetham-hall-wedding-photography-lavenham-photographic/
redirect 301 /wedding/photographer/smeetham-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/emma-chris-smeetham-hall-wedding-photography-lavenham-photographic/
redirect 301 /photographer/video_ravenwood_hall_bury_st_edmunds_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/lisa-james-ravenwood-hall-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/ravenwood-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/lisa-james-ravenwood-hall-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/album_ravenwood_hall_bury_st_edmunds_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/lisa-james-ravenwood-hall-wedding-photographed-lavenham-photographic/
redirect 301 /wedding/photographer/ravenwood-hall/index.htm http://www.lavenhamphotographic.co.uk/blog/lisa-james-ravenwood-hall-wedding-photographed-lavenham-photographic/
redirect 301 /photographer/video_milden_hall_barn_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/milden-hall/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_milden_hall_barn_essex_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/milden-hall/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_preston_priory_barn_lavenham_sudbury_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/preston-priory/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_preston_priory_barn_lavenham_sudbury_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/preston-priory/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_bull_hotel_long_melford_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/bull-hotel/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_bull_hotel_long_melford_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/bull-hotel/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_hintlesham_hall_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/hintlesham-hall/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_hintlesham_hall_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/hintlesham-hall/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_stoke_by_nayland_golf_club_spa_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/victoria-neil-stoke-nayland-golf-club/
redirect 301 /wedding/photographer/stoke-nayland/index.htm http://www.lavenhamphotographic.co.uk/blog/victoria-neil-stoke-nayland-golf-club/
redirect 301 /photographer/album_stoke_by_nayland_golf_club_spa_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/blog/victoria-neil-stoke-nayland-golf-club/
redirect 301 /wedding/photographer/stoke-nayland/index.htm http://www.lavenhamphotographic.co.uk/blog/victoria-neil-stoke-nayland-golf-club/
redirect 301 /photographer/video_hanbury_manor_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301/wedding/photographer/hanbury-manor/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_hanbury_manor_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/hanbury-manor/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_orwell_park_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/orwell-park/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_orwell_park_suffolk_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/orwell-park/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/video_tattersalls_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /wedding/photographer/tattersalls/index.htm http://www.lavenhamphotographic.co.uk/recommended-by-venues.html
redirect 301 /photographer/album_tattersalls_wedding_photography_photographer.htm http://www.lavenhamphotographic.co.uk/index.htmlm
redirect 301 /pano/virtual_tour_house_sales_estate_agents.htm  http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /pano/index.htm  http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /pano/virtual_tour_gosfield_hall.htm http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /pano/virtual_tour_lavenham_church.htm http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /pano/virtual_tour_swan_hotel.htm http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /pano/virtual_tour_st_pancras_station_1.htm http://www.lavenhamphotographic.co.uk/index.html
redirect 301 /notfound.htm http://www.lavenhamphotographic.co.uk/notfound.html
  • Author

It's OK- found it! I've got a missing space where redirect 301 runs straight into the /wedding/photographer/....

Just the pitfall of doing so many lines!!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.