• This will be a long description of what is happening to my blog, so please bear with me…

    The set-up (Using 1.5.2 and hosting myself)

    The site is a digest site using contributers for content. The content is automatically processed through a .php and written through .htaccess. This is working fine.

    The Problem

    When I have the .htaccess enabled, I get the all too prevalent enable referrers error that I have read about (I’ve tried allowing the site through the browser and firewalls and know this isn’t the actual issue, which I’ll explain further). Nobody can post comments, and I can’t edit anything…

    When I rename the .htaccess so that it isn’t recognized, the comments and editing work fine (this is why I don’t think it’s an actual enable referrer issue).

    The Issue

    I have to have the .htaccess file enabled so that the rewrites in the script will work, but then the comments do not work. I obviously need people to be able to post comments.

    Some Observations/Things that May Have Had an Effect

    I tried to switch over to perma-links, but they would not work with the script for some reason, so I turned them back off again…(maybe this could’ve effected a setting?)

    The filename setup in the blog control panel is listed as mainsite/subdir instead of mainsite/subdir/ (could this effect the way it writes posts somehow while .htaccess is active?)

    If I toggle between having the .htaccess and not, I have to delete cookies to re-login…(ie: to edit, then to view the site seperately once I have the .htaccess active again)

    If I do not delete the cookies and try to log in, I either get the 404 page or a weird text only non-template WP screen. If I delete the cookies before I try and login, I can log in either way (with or without the .htaccess enabled, just won’t let me make changes through the control panel unless it is NOT enabled).

    The only other things I have in my .htaccess are (see .htaccess file below)

    What I Have Tried

    Every variation of enabling referrers that I could find through the codex/forum…(using IE6)

    Changing main site address/location to mainsite/subdir/ from mainsite/subdir (which didn’t take through the control panel or through editing the SQL database through my web interface.

    Summary

    Again, my script works fine and writes fine with the .htaccess the way it is, but it will not allow posts, comments, anything to take through the control panel or blog. Please Help!

    My .htaccess

    AddType application/x-httpd-php .php .htm .html
    Options Indexes FollowSymLinks Includes
    RewriteEngine On

    ErrorDocument 404 https://www.mainsite.com/summary.html

    RewriteCond %{HTTP_HOST} ^mainsite.com [NC]
    RewriteRule ^(.*)$ https://www.mainsite.com/$1 [L,R=301]

    <IfModule mod_rewrite.c>
    RewriteBase /video-clip/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ – [S=35]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /video-clip/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /video-clip/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /video-clip/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /video-clip/index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /video-clip/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /video-clip/index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /video-clip/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /video-clip/index.php?author_name=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /video-clip/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /video-clip/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /video-clip/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /video-clip/index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /video-clip/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
    </IfModule>

Viewing 1 replies (of 1 total)
  • Thread Starter Tom Ford

    (@softservenet)

    Updated,

    I found that the URL in my options-home sql had the trailing slash…so now both options-url and options-home in sql don’t have the trailing slash, and I seem to be able to edit the posts OK by logging into the control panel.

    When I attempt to post as a user, still nothing happens, it just lags there and doesn’t post.

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess toggle and filename setup with installed software for content issue’ is closed to new replies.