| Author |
|
sanjay2409 Newbie

Joined: 27 February 2010 Location: United Kingdom
Online Status: Offline Posts: 5
|
| Posted: 27 February 2010 at 12:28pm | IP Logged
|
|
|
Hi,
I am very new. I have been directed here... yet i still require more help. 
my website does not automatically redirect to www. 
myperfectasianwedding.com
it's a massive problem for me and i require it to redirect automatically to www.myperfectasianwedding.com
using Helicon Ape through .htaccess as i am hosting the website on a windows server 
thanks in advance
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1535
|
| Posted: 27 February 2010 at 4:14pm | IP Logged
|
|
|
Hello,
Please try and insert the following configuration into .htaccess:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^myperfectasianwedding\.com$ [NC]
RewriteRule (.*) http://www.myperfectasianwedding.com/$1 [R=301] |
|
|
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
sanjay2409 Newbie

Joined: 27 February 2010 Location: United Kingdom
Online Status: Offline Posts: 5
|
| Posted: 27 February 2010 at 6:02pm | IP Logged
|
|
|
thanks a million!!!!
|
| Back to Top |
|
| |
sanjay2409 Newbie

Joined: 27 February 2010 Location: United Kingdom
Online Status: Offline Posts: 5
|
| Posted: 27 February 2010 at 6:04pm | IP Logged
|
|
|
just for future reference.....
what would it be if i would like it to redirect to
http://www.myperfectasianwedding.com/eastmidlands/leicester/leicester_index.html
|
| Back to Top |
|
| |
sanjay2409 Newbie

Joined: 27 February 2010 Location: United Kingdom
Online Status: Offline Posts: 5
|
| Posted: 27 February 2010 at 7:58pm | IP Logged
|
|
|
RewriteEngine on
RewriteCond %{HTTP_HOST} ^myperfectasianwedding\.com$ [NC]
RewriteRule (.*) http://www.myperfectasianwedding.com/$1 [R=301]
RewriteCond %{HTTP_HOST} ^www.myperfectasianwedding\.com$ [NC]
RewriteRule (.*) http://www.myperfectasianwedding.com/eastmidlands/leicester/leicester_index.html$1 [R=301]
could i do both at the same time?
Edited by sanjay2409 - 27 February 2010 at 7:58pm
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1535
|
| Posted: 01 March 2010 at 12:14am | IP Logged
|
|
|
Hello,
The (.*) pattern will be matched with any request. So the rule redirects any request to www.myperfectasianwedding.com to http://www.myperfectasianwedding.com/eastmidlands/leicester/leicester_index.html, adding original URL right after ..._index.html. Is that what you want?
Please clarify what initial request should be redirected to http://www.myperfectasianwedding.com/eastmidlands/leicester/leicester_index.html
Thank you.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
sanjay2409 Newbie

Joined: 27 February 2010 Location: United Kingdom
Online Status: Offline Posts: 5
|
| Posted: 03 March 2010 at 7:28am | IP Logged
|
|
|
Basically
it started off with myperfectasianwedding.com
so i wanted the www. infront of it.
but now i would like to achieve
http://www.myperfectasianwedding.com/eastmidlands/leicester/leicester_index.html
AFTER TYPING www.myperfectasianwedding.com OR myperfectasianwedding.com in any web browser
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1535
|
| Posted: 03 March 2010 at 11:13am | IP Logged
|
|
|
Hello,
Could you please clarify whether you need any further assistance.
Thank you.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |