I have a blog using WP and a few weeks ago I decided to add a links directory to it on a sub domain. When someone wants to go straight do the links directory they can type "http://directory.mysite.com". Because I installed the directory in the folder Directory every time they surf around it will appear like this "http://directory.mysite.com/directory" on the address bar. Is there a way that I can make the directory part of the address disappear? I’m afraid that people visiting the site might get confused by the strange address.
If you have the access to your site or the configuration might as well point the DocumentRoot of the subdomain directory.mysite.com upto the new directory you created and it will solve everything
umm i a little confused . Whats wrong in moving all the files for the Links installation to the root i.e http://directory.yoursite.com/ Code (markup): ?
Thanks for the replies but I’m afraid that I don’t quite follow. First how do I access to the DocumentRoot? Would imply deleting the Directories folder and moving all the files to the root directory? Wouldn’t this cause a lot of problems especially if I wanted to delete the directory latter on?
Are you hosted on Windows or LInux? It sounds to me like a Windows virtual directory issue. Generally, the root directory for a Windows based server is either www, wwwroot, or home For Linux servers the root directory may have any of these names: public_html, htdocs, httpdocs, or mainwebsite_html, and very rare to be named home depending on your website control panel and server configuration.
Then should not be problem with the server, so go and check WP configuration under settings. When you install WP the installar read the actual relative path: http://www.mysite.com/directory so when you are calling it from your browser using the subdomain, it seems to be calling http://directory+ the setting on your configuration. From inside your WP admin area verify it is pointing simply to http://directory.mysite.com and not the original location (http://www.mysite.com/directory)
No deleting of some sort: it's an apache directives Some kind of an entry like this: <VirtualHost ip-address> ServerName directory.sitename.com DocumentRoot /home/sitename_root/directory </VirtualHost>