![]() |
replacing & and ? in php
i know there are a few ways to replace ? and & in the url.
whats the easiest way to do it for the search engines? |
Do you mean the server side commands to format it like /blash/bhah/blah instead of the question mark and ampersand?
|
yeah. i think something to do with the path info command.. i dont wanna screw with the conf. files
i had seen one article but it was so poorly written |
This what you're trying to do?
http://www.desilva.biz/apache/rewritedir.html I've seen a much more detailed one but I can't find it at the moment |
use a URL Encoder
|
php has a function urlencode ('string')
outputs encoded url, php is the shit, if you need more help, contact me ) |
I use apache's ForceType to do this. The script looks like it is part of the path. If you don't want to mess with the conf files, put it in a .htaccess file. More info at http://www.devarticles.com/art/1/143/4
|
Stick this in your .htaccess -
AcceptPathInfo On then you can invoke script.php like this - www.somedomain.com/script.php/param1/param2/etc Dave. |
All times are GMT -7. The time now is 02:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123