apache redirect old url to new url RewriteRule ^Apcupsd_master_slave_example/?$ /apcupsd-master-slave-example/ [L,R=301]