Follow Us on Twitter
Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting new! Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


htaccess and rewrite.script

 
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
themuttsknutts Reply with quote
 NetHosted Customer

 

 Joined: 28 Jul 2012
 Posts: 25
 Location: Yorkshire

PostPosted: Tue Jul 31, 2012 11:29 am    Post subject: htaccess and rewrite.script
 
Do I need to use .htaccess in apache,

and do I need to remove the rewrite.script files from my drupal 7 sites when I move them across ?

Is this the code to rewrite to the www ?

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com[nc]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Bret Reply with quote
 NetHosted Staff

 

 Joined: 19 Mar 2012
 Posts: 89
 

PostPosted: Tue Jul 31, 2012 11:46 am    Post subject:
 
Hi,

We do support rewrite rules and to utilise them, you will need to place them in the .htaccess file as you mention.

The code looks ok, but the best way to check if it works will be to give it a go in the .htaccess file

Kind Regards,
Bret

_________________
| Bret Weber
| Sales & Support Technician, NetHosted Ltd.
| Earn £30 every time you refer someone to us! Affiliate Scheme 
| Follow us on Twitter: http://twitter.com/nethosted 
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
themuttsknutts Reply with quote
 NetHosted Customer

 

 Joined: 28 Jul 2012
 Posts: 25
 Location: Yorkshire

PostPosted: Tue Jul 31, 2012 3:53 pm    Post subject:
 
I am going to alter the DNS at the registrar to point to the new site.

To confirm : I need to change the

primary nameserver to ns19.net-hosted.com.

and secondary to ns20.net-hosted.com.
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Bret Reply with quote
 NetHosted Staff

 

 Joined: 19 Mar 2012
 Posts: 89
 

PostPosted: Tue Jul 31, 2012 3:55 pm    Post subject:
 
Hi,

Yes, that would be correct!

Kind Regards,
Bret

_________________
| Bret Weber
| Sales & Support Technician, NetHosted Ltd.
| Earn £30 every time you refer someone to us! Affiliate Scheme 
| Follow us on Twitter: http://twitter.com/nethosted 
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: