Please before u say its duplicated i know i have googled for hours but i dont know where the problem is i have a centos server with
Server version: Apache/2.2.27 (Unix)
Server built: Jul 26 2015 04:33:04
files are located in :
/home/user/public_html
ls -la:
index.php includes view.php .htaccess ...
when i try to open webpage site.com/view/test i do
tail -f /var/log/httpd/error_log
but there is no error
this is my rules
RewriteEngine on
RewriteBase /
RewriteRule ^view/$ view.php
RewriteRule ^view$ view.php
RewriteRule ^view/(\w+)?$ view.php?cat=$1
it works fine on localhost (ubuntu 14.04 Desktop).
On server when i access
site.com/view
its fine and shows me view.php but
site.com/view/test
will not give me view.php?cat=test