Jump to content

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'

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.