Hi guys,

This will probably be very easy for some of you but I failed even I had a website examples.

I want
http://s12345.webspace.info/http/myapp/
to bew replaced with
http://portal.myapp.co.uk/

How can I do this with htaccess?

Thanks in advance

Hi guys,

This will probably be very easy for some of you but I failed even I had a website examples.

I want
http://s12345.webspace.info/http/myapp/
to bew replaced with
http://portal.myapp.co.uk/

How can I do this with htaccess?

Thanks in advance

Assuming this is a permanent move (301 - moved permanently), create a file called .htaccess in the root folder of your website with the following:

Options +FollowSymLinks
Redirect 301 /http/myapp/ http://portal.myapp.co.uk

That *should* do the trick. Let us know!

HTH,
-Ray

Thanks for the reply but unfortunately I changed the whole structure of directory just because I didn't get prompt answer. However, I'll keep your answer somewhere just in case I need it in future.

Thanks again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.