i am developing a php web aplicaiton.i have pages,posts,categoryies,product and etc
here is my htaccess file to create seo friendly url?
Options -Indexes
RewriteEngine on
RewriteRule ^Page/(.*)/(.*)$ Page.php?Page_Id=$1&Page_Title=$2 [NC,L]
RewriteRule ^Product/(.*)/(.*)$ Product.php?Product_Id=$1&Product_Title=$2 [NC,L]
RewriteRule ^Category/(.*)/(.*)$ Category.php?Category_Id=$1&Category_Title=$2 [NC,L]
RewriteRule ^Single/(.*)/(.*)$ Single.php?Post_Id=$1&Post_Title=$2 [NC,L]
RewriteRule ^Blog/(.*)/(.*)$ Blog.php?Category_Id=$1&Category_Title=$2 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
when i visit
Pgae.php?Page_Id=13 it work
and also when i visit
Page/13/Page-Title
it works again.every thing is good untill i test my application on server but it does'nt work in wamp localhost
i active
LoadModule rewrite_module modules/mod_rewrite.so
in apache http.conf and here is my vhost
<VirtualHost *:8080>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerName schoolarshop
DocumentRoot "c:/wamp64/www/schoolarshop"
<Directory "c:/wamp64/www/schoolarshop/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride none
Require local
</Directory>
</VirtualHost>
example of error in localhost is:
Notice: Undefined index: Page_Id in Page.php on line 8
why it work on server and not in localhost?
i googled a lot but it can't find anything.please save my life and my work :)