aria505 Posted August 28, 2006 Posted August 28, 2006 (edited) Hey Everyone, I just joined TCH a few weeks ago, and I'm trying to setup my Search-Engine Friendly URLs by adding some mod_rewrite rules to my .htaccess file, but none of the changes that I make to the files seem to being going into affect. Even when I tried adding some ErrorDocument information just to see if the .htaccess file would take those settings, it still did not affect anything. It is as if my .htaccess file doesn't even exist and is being completely overlooked. Is there something I need to do to enable the .htaccess file on this server or something? Edited August 28, 2006 by aria505 Quote
TCH-Don Posted August 28, 2006 Posted August 28, 2006 Welcome to the forums aria505 There is nothing you need to do to enable the .htaccess file in your public_html folder or any folder below that. Are you sure you have the right code for the mod rewrite or the Errordocument? For the Errordocument I use ErrorDocument 404 /error.php Quote
aria505 Posted August 28, 2006 Author Posted August 28, 2006 Hmmmmmm well it seems to be working now. I was using that syntax for the ErrorDocument code. My mod_rewrite code is working now too. This time I was editing the .htaccess file using cpanel instead of using Dreamweaver and then uploading it again. Could that have been the problem? Anyways, thanks for the super fast response. I've seen you two all over this forum and you do a great job. Quote
TCH-Don Posted August 28, 2006 Posted August 28, 2006 You are welcome Yes DW is not the best way to edit text files. It tends to add coding to your files. A simple text editor or cpanels filemanager works best. Quote
TCH-Bruce Posted August 28, 2006 Posted August 28, 2006 Hmmmmmm well it seems to be working now. I was using that syntax for the ErrorDocument code. My mod_rewrite code is working now too. This time I was editing the .htaccess file using cpanel instead of using Dreamweaver and then uploading it again. Could that have been the problem? Glad you have it working. As Don said it's best to edit the .htaccess file with a pure text editor. If you are uploading one from your computer to the server also make sure to do so in ASCII mode and not Binary. Anyways, thanks for the super fast response. I've seen you two all over this forum and you do a great job. Thank you, we try to help as much as possible. Quote
TCH-JimE Posted August 29, 2006 Posted August 29, 2006 Welcome to the forums. Its possible DW was not saving the .htaccess as a proper .htaccess file. In your file manager, can you see a duplicate of .htaccess? JimE Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.