hi friends
i wanna hide the extension of my php pages in URL , i try a code and it works properly , bu when i use get method in my addresss , i want it seem like this :
http://mysite/products/page/1
instead of ttp://mysite/products?page=1
this is my code in HTACCESS file :
RewriteEngine on
# Rewrite /foo/bar to /foo/bar.php
RewriteRule ^([^.?]+)$ %{REQUEST_URI}.php [L]
# Return 404 if original request is /foo/bar.php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [L,R=404]
# NOTE! FOR APACHE ON WINDOWS: Add [NC] to RewriteCond like this:
# RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$" [NC]
i need help , thanks my friends
so , i want a script that , make my extension of page hidden , like this :
http://mysite/contact.php to http://mysite/contact
and also in some url , i be able to use :
http://mysite/products/page/5
instead of
http://mysite/products?page=5
thanks experts
i wanna hide the extension of my php pages in URL , i try a code and it works properly , bu when i use get method in my addresss , i want it seem like this :
http://mysite/products/page/1
instead of ttp://mysite/products?page=1
this is my code in HTACCESS file :
RewriteEngine on
# Rewrite /foo/bar to /foo/bar.php
RewriteRule ^([^.?]+)$ %{REQUEST_URI}.php [L]
# Return 404 if original request is /foo/bar.php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [L,R=404]
# NOTE! FOR APACHE ON WINDOWS: Add [NC] to RewriteCond like this:
# RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$" [NC]
i need help , thanks my friends
so , i want a script that , make my extension of page hidden , like this :
http://mysite/contact.php to http://mysite/contact
and also in some url , i be able to use :
http://mysite/products/page/5
instead of
http://mysite/products?page=5
thanks experts