Htacess rewrite does not open index

-1

Hi, I have this .htacess

RewriteEngine On
RewriteBase /

RewriteRule ^(css|images|js|fonts) - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1/$1/$2 [R=301,L]
RewriteRule ([a-z0-9]+)/([a-z0-9]+)$ PDOClasses/Pages/checkurl.php?param1=$1&param2=$2 [L,QSA]
RewriteRule ([a-z0-9]+)/([a-z0-9]+)/$ PDOClasses/Pages/checkurl.php?param1=$1&param2=$2 [L,QSA]
RewriteRule ([a-z0-9]+)$ PDOClasses/Pages/checkurl.php?param1=$1 [L,QSA]
RewriteRule ([a-z0-9]+)/$ PDOClasses/Pages/checkurl.php?param1=$1 [L,QSA]

I can not access index.php because it plays me to checkurl.php What did I do wrong in the rules?

    
asked by anonymous 02.09.2016 / 04:18

1 answer

0

Try to do this using RewriteRule and inserting ^(.*)$ / with index.php . Then you can adapt it.

RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
    
02.09.2016 / 04:33