hi, I don’t know php, but I took over a php site, have set it all up on my server and it all works except the url strings aren’t calling the right page.
clicking on a link will load a url like so: mysite.com/php/go/offers/ - this wont work
if I change it in the address bar to: mysite.com/php?go/offers/ - it does
it automatically changes it to: mysite.com/php/?go/offers/ - then loads the page
my .htaccess looks like this
<FilesMatch "^go$">
ForceType application/x-httpd-php
</FilesMatch>
<FilesMatch "^goshop$">
ForceType application/x-httpd-php
</FilesMatch>
<FilesMatch "^adm$">
ForceType application/x-httpd-php
</FilesMatch>
<FilesMatch "^admshop$">
ForceType application/x-httpd-php
</FilesMatch>
and the go file is like this
<?
$loaderName = 'go';
include_once "index.php";
?>
there is a config file which contains this
$configurationFilePath = dirname(ereg_replace("\\\\","/",__FILE__));
$mainConfig['Settings']['RootPath']=$configurationFilePath.'/';
$requestURL =$_SERVER['HTTP_HOST'];
$requestURL = str_replace("http://","",$requestURL);
$requestURL = 'http://'.$requestURL;
$mainConfig['Settings']['rooturl']=$requestURL.'/php/';
if(empty($loaderName)) {$loaderName='go';}
if(!empty($loaderName))
{
$mainConfig['Settings']['url']=$mainConfig['Settings']['rooturl'].$loaderName.'/';
}
else
{
$mainConfig['Settings']['url']=$mainConfig['Settings']['rooturl'].'?SID=';
}
I’m guessing its one or some of these that I need to change???