dflow Posted October 14, 2009 Share Posted October 14, 2009 my .htaccess is for testing purposes: RewriteEngine On # Turn on the rewriting engine RewriteRule ^pet-care/?$ pet-care-info.php [NC,L] # Handle requests for "pet-care" i get a 404 error for http://ct.domain.com/pet-care what should i check ? my hosting support says they dont know why it doesnt work Link to comment https://forums.phpfreaks.com/topic/177657-mod-rewrite-not-working/ Share on other sites More sharing options...
cags Posted October 14, 2009 Share Posted October 14, 2009 As 404 is a file not found error, I assume http://ct.domain.com/pet-care-info.php does exist? Have you tried... RewriteRule ^pet-care/?$ /pet-care-info.php Link to comment https://forums.phpfreaks.com/topic/177657-mod-rewrite-not-working/#findComment-936768 Share on other sites More sharing options...
dflow Posted October 14, 2009 Author Share Posted October 14, 2009 As 404 is a file not found error, I assume http://ct.domain.com/pet-care-info.php does exist? Have you tried... RewriteRule ^pet-care/?$ /pet-care-info.php great thanks how would you treat non,latin letters/words? Link to comment https://forums.phpfreaks.com/topic/177657-mod-rewrite-not-working/#findComment-936774 Share on other sites More sharing options...
dflow Posted October 14, 2009 Author Share Posted October 14, 2009 As 404 is a file not found error, I assume http://ct.domain.com/pet-care-info.php does exist? Have you tried... RewriteRule ^pet-care/?$ /pet-care-info.php great thanks how would you treat non,latin letters/words? ok figured it out need to save the file as utf-8 without BOM Link to comment https://forums.phpfreaks.com/topic/177657-mod-rewrite-not-working/#findComment-936787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.