htaccess File

Get answers to common Article Dashboard installation questions and tips on customizing the script for your site.

htaccess File

Postby wtxgal » Sat Nov 15, 2008 11:31 pm

Hello Everyone! I have a problem in my htaccess file. When I click on an article title it takes me toa 404 error. Could someone tell me how to correct this. Please help and thank you!
wtxgal
 
Posts: 2
Joined: Sat Nov 15, 2008 10:29 am

Re: htaccess File

Postby GardenSimply » Wed Nov 19, 2008 8:43 am

Hi ! Welcome to the forum.

What version of php are you running? If you leave a php flag i.e.

php_flag session.use_trans_sid off

even if it is commented out, it can jack things up.

Make certain too that your host hasn't disabled your .htaccess file or renamed it.

If your installation is in a subdirectory (like domain/articles) you may need to add a line of code to your .htaccess file, like RewriteBase /directoryname

And make double triple sure your paths in the setup.php file are accurate. Make certain there is no trailing slash at the end of the url or path

Be sure to use www in your url in setup.php

Every little once in a while you run across a server that doesn't like the Frontpage directives and you can remove those and it will help.

And one last thing, I would add, place this code in your .htaccess file above ReWriteEngine On
<Files .htaccess>
order allow,deny
deny from all
</Files>

<Files ~ "\.tpl$">
Order allow,deny
Deny from all
Satisfy All
</Files>
User avatar
GardenSimply
Admin
 
Posts: 208
Joined: Sat Sep 15, 2007 10:31 am
Location: Oklahoma

Re: htaccess File

Postby GardenSimply » Wed Nov 19, 2008 8:58 am

Just one more thought, LOL

IF your server doesn't have register_globals on in it's configuration (and many don't for security reasons) you may have to either turn it on in your own php.ini file or in .htaccess (if you aren't running php5) like so...

php_flag magic_quotes_gpc on
php_flag register_globals on
User avatar
GardenSimply
Admin
 
Posts: 208
Joined: Sat Sep 15, 2007 10:31 am
Location: Oklahoma

Re: htaccess File

Postby wtxgal » Wed Nov 26, 2008 1:36 am

Thank you so much for your help!
wtxgal
 
Posts: 2
Joined: Sat Nov 15, 2008 10:29 am

Re: htaccess File

Postby GardenSimply » Wed Nov 26, 2008 8:41 pm

You're so welcome. :)
User avatar
GardenSimply
Admin
 
Posts: 208
Joined: Sat Sep 15, 2007 10:31 am
Location: Oklahoma

Re: htaccess File

Postby sanjay » Thu Sep 02, 2010 4:10 am

.htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.

Note: If you want to call your .htaccess file something else, you can change the name of the file using the AccessFileName directive. For example, if you would rather call the file .config then you can put the following in your server configuration file:

================
Breast Enhancement | Breast Augmentation
sanjay
 
Posts: 2
Joined: Thu Sep 02, 2010 4:03 am


Return to Article Dashboard Installation and Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron