Jump to content

.htaccess Changes Are Not Effecting Anything


Recommended Posts

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 by aria505
Link to post
Share on other sites

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

Link to post
Share on other sites

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.

Link to post
Share on other sites
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...