Have you spoken to your hosts about this?
No, I have a dedicated server and I can edit all files or DNS records
EDIT: When i said “all links i can click” i mean that the src tag even if i put “./about.php” render as “http://site.com/about.php” instead of “http://beta.site.com/about.php”
So i thought it was a WP configuration
Where did you install WordPress on this domain?
I have a folder /var/www/site/ where wordpress is located that points to http://site.com
Where did you install WordPress on this domain? In the root of site.com?
Then you really need to look at Moving_WordPress.
Ok thanks for the link, but let me ask one more question before i continue, will this help me to Move WordPress or to Copy it ?
Because I need to access the Same WordPress content with my subdomain or domain like if it was the same.
I read many people who wanted to move indeed their installations, but I don’t want to move it, I just want to make a subdomain alias so that when I post an article via http://beta.site.com/wp-admin/post-new.php it works the same as if I was on http://site.com/wp-admin/post-new.php
Do you want 1 or 2 sites?
Just one, i just want an alias (another URL) for same website
You can only use one domain name per install, so the best you will be able to do is re-direct all calls for http://beta.site.com/foobar to http://site.com/wp-admin/foobar via .htaccess.
okay so this will work with htaccess ?
And do you know how to do it ?
Try googling on “.htaccess redirect”. And bear in mind that the final urls will always show http://site.com.foobar
I am googling right now and i will try some solutions, thanks
Also i think i will always encounter a problem when i try to log in via http://beta.site.com because wp-login.php redirects me to http://site.com instead of http://beta.site.com