Jump to content

How do I stop the Path info url?


keldorn

Recommended Posts

I noticed on my site, I can take pages and put for example  index.php/test/does/not/exist/ and it will return the index.php as if this were another page with 200 OK response and leave the slashes on there as if it were a directory. I dont know why that is working that way. I am not using path info urls nor do I have any .htacces rules  :shrug:  Also I'm using Smarty template. Is there something in smarty that needs to be disabled?

Link to comment
https://forums.phpfreaks.com/topic/174842-how-do-i-stop-the-path-info-url/
Share on other sites

 

The issue is that it creates duplicate pages. A search will treat that link as a new page.

 

http://www.php.net/downloads.php/a/fake/link/here/

http://www.youtube.com/index.php/look/a/fake/link

That should return 404 not found.

 

 

 

unless of course your query is the fact it is a query string? in which case is still the same file/page... and if that page does not know those queries (more than likely a .htaccess thing. ) then it will display the page with its 'defaults'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.