PDA

View Full Version : same site url php problem


neroma
12-08-2007, 10:22 AM
Hi there,

Im finishing off optimizing a website before submitting it. Ive figured out the meta tags in php, changed the body text no problem, but because the site uses the following code:-

<a href="<? echo SITE_URL; ?>reception/" class="snav" >Reception Areas</a>

The site has no same site url's, which im afraid may get it punished by search engine's. How do I change the php script, so instead of looking for www.primeofficeenviroments.com/reception.
It just looks for /reception on the same site.

Jazajay
12-19-2007, 01:36 AM
Hi neroma
What do you mean by
same site url's
I have an idea but just want to make sure.

From what I gather from the info you provided you want to take yoursite.com/reception to just /recpetion.

Not too sure why this is a big issue as this wouldn't cause you any problems but you want to remove this-
<? echo SITE_URL; ?>recpetion

and change it to -
/recpetion
This will make the url relative. However it will still be accessed via yoursite.com/recpetion

Also you will want to look for some code that defines this constant. It should look like
define("SITE_URL","primeofficeenviroments.com");
and be defined before this line of code you could remove that as that would be useless if you take out all the -
<? echo SITE_URL; ?>