Page 1 of 1

Cannot have access to my blog anymore

PostPosted: Sun Mar 30, 2014 12:10 pm
by mikeI88
Hello everyone,

I have a site and i use pivotx as a blog service in the folder http://www.mysite.com/blog/
I recentry added the following .htaccesss on the root of my server (i wanted to get rid of the .php in urls)
Now i cannot access my pivotx blog. the only way to access it is to type: http://www.mysite.com/blog/index but after that non of any links works.

The .htaccesss file contains the following:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} \/index.php\ HTTP [NC]
RewriteRule (.*)index.php$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Do you have any ideas how to fix this problem?

Re: Cannot have access to my blog anymore

PostPosted: Sun Mar 30, 2014 1:10 pm
by Harm10
The obvious suggestion would be to remove the .htaccess file/change?

Re: Cannot have access to my blog anymore

PostPosted: Sun Mar 30, 2014 9:07 pm
by hansfn
mikeI88, you are aware that PivotX does support no-crufty URLs / mod_rewrite? Please try that before you continue with your approach.

PS! Regarding your code, I guess one problem is that you don't handle directories - "RewriteCond %{REQUEST_FILENAME} !-d" is missing.