Web Hosting Talk







View Full Version : Help me some on my website


simdm80
01-10-2010, 09:01 PM
Now i have a joomla website in a directory for example /joomla, so everyone go to my domain will be redirect to that folder. So now i have other folder in my root such as client, billing and, etc. No i want it no redirect, means www.domain.com can see my joomla page(i know i can do it with joomla pack and reinstall to root folder), is there any other way? I want to keep the url that search engine indexed and those advertisement i placed. Because the search engine indexed the /joomla and advertising also placed as www.domain.com/joomla/anything. How can i make sure i moved to the root and also reachable by those advertisement i placed? How long will it takes to let search engine reindex my website with no /joomla?

Host Ahead
01-11-2010, 10:00 AM
Hello,

You could use URL rewriting to rout incoming requests for the old page locations to the new location. Make sure you don't send 302 status codes as this means that th epage is temporarily move.

Best thing would be if you could just serve up the page as if it were at that location.

I'm mainly a .NET developer, so I can't help you on the technical insights of how to do this on Linux/PHP but maybe someone can help you with that.

If you want to lookup this you can search for something like "PHP URl rewriting" on Google, and you will get a lot of hits and howto's. I also believe you could use .htaccess files for URL rewriting.

With kind regards

BrettB
01-11-2010, 02:45 PM
Yeah,

Personally if I wanted to move it to the base directory, I would move the installation to that location, and then create an htaccess file which redirects all /joomla/ requests to the new location with a 301 permanent redirect.

You can also do it the other way around, by redirecting all requests to / to the joomla folder using url rewriting in your htaccess.