# Url string problem with / and?

**URL:** <https://forum.kirupa.com/t/url-string-problem-with-and/277427>\
**Category:** Uncategorized\
**Created:** [December 11, 2008, 10:08pm UTC](https://forum.kirupa.com/t/url-string-problem-with-and/277427 "2008-12-11T22:08:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)\
**Post date:** [December 11, 2008, 10:08pm UTC](https://forum.kirupa.com/t/url-string-problem-with-and/277427/1 "2008-12-11T22:08:34Z")

</div>

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/](http://mysite.com/php/go/offers/) - this wont work

if I change it in the address bar to: [mysite.com/php?go/offers/](http://mysite.com/php?go/offers/) - it does

it automatically changes it to: [mysite.com/php/?go/offers/](http://mysite.com/php/?go/offers/) - then loads the page

my .htaccess looks like this

```php
<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

```php
<?

$loaderName = 'go';

include_once "index.php";

?>

```

there is a config file which contains this

```php

    $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???
