PDA

View Full Version : search engine friendly urls with .htaccess



eMEraLdwPn
09-28-2004, 08:59 AM
i was trying to set something up on someone's server using the .htaccess forcetype method in the article at http://www.websitepublisher.net/article/search_engine_friendly_urls/

i was able to use this on my server / sites with no problem, but it won't work on his. i ssh'ed into the server and the .htaccess file was there as i had uploaded it, and the code is definitely right, but the urls won't work. he has his own dedicated server running red hat linux, and it is an apache server - also, he's running ensim basic. any suggestions?

James
09-28-2004, 01:23 PM
I think that it could be somethign to do with how the server is configured. Ask his host about it.

tomek
09-28-2004, 02:57 PM
.htaccess files are not enabled in the default apache configuration because they suck up some server performance

you can allow them with the AllowOverride All statement...

but it would be best NOT to use .htaccess and keep this functionality disabled but write your force-type statements into the apache config directly

... and keep in mind that you have to restart apache when you change the config file

httpd2 -k restart
(might be different on your server)