Correct 301 Moved Permanently Code
May 6, 2009
I am trying to push my server to return Moved Permanently code and redirect these URLs to the main URL, but cant find the right code.
domain.com
w.domain.com
ww.domain.com
wwww.domain.com
to
www.domain.com
There are a number of codes available on the net and all supposed to do that, but which one is the eight one?
1)
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewritecond %{http_host} ^w.domain.com [nc]
rewritecond %{http_host} ^ww.domain.com [nc]
rewritecond %{http_host} ^wwww.domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
2)
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com
RewriteCond %{HTTP_HOST} ^w.example.com
RewriteCond %{HTTP_HOST} ^ww.example.com
RewriteCond %{HTTP_HOST} ^wwww.example.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
3)
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^w.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^ww.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^wwww.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
View 14 Replies
ADVERTISEMENT
May 31, 2008
there is no one didnot hear about the Price increased @ LT
so i may need to know and ask evry body..
where did you moved ?
or
where are you think to be moved to?
i'll be more than happey if you help us and tell us with why did you moved to this one
View 14 Replies
View Related
Jul 7, 2007
when I try to send Email from horde I have this:
PHP Code:
There was an error sending your message: Failed to add recipient: xxxxx@hotmail.com [SMTP: Invalid response code received from server (code: 451, response: Temporary local problem - please try later)]
View 5 Replies
View Related
Apr 7, 2007
I'm running centos 4.4 and i just installed another HD... seems like everytime I reboot the server, my mount is gone... This is what I have in my fstab:
mount /dev/sdb1 /drive2 defaults 1 3
View 3 Replies
View Related
May 26, 2008
I use deflate to prevent ddos attack.
But after I start deflate, I still keep seeing a lot of connection from certain IP.
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
87 218.86.252.158
363 219.150.191.62
501 60.216.238.212
I want to block those IPs permanently.
How can I do that.
View 7 Replies
View Related
Mar 30, 2015
I am using nginx exclusively for my websites/php stuff and I do not need apache anymore. I want to switch off Web Server (Apache) service permanently (see screenshot 1). But somehow or something turns it always back on. I am getting a lot of apache memory warnings lately. I just want to turn it off.
View 4 Replies
View Related
Aug 11, 2007
Any straight up easy way. So they stay permanent?
Can I simply use system-config-network and add each IP one at a time.
View 6 Replies
View Related
Oct 29, 2007
My server runs on CSF.
Very often the firewall automatically ban some of my customers IP who has fix IP to access to their webmail and website, because they have over 100 staffs, maybe that is why the IP was banned automatically for having too many connections to the server.
Everytime I unban the IP, it keeps being banned again. I have to stop / restart iptables to flush it.
How can I allow the IP permanently?
View 1 Replies
View Related
Feb 11, 2015
How to set a permanent ban per IP in Fail2ban?? I have banned continuously some IPs with recidibe and I need put this IPs in a permanent blacklist.
View 1 Replies
View Related
Jun 30, 2009
I have a small VPS that is used only to send mail. It uses the HyperVM software, so I installed "Klaxo" (LXadmin) on it and set up the domain, etc..
I then went into the "Server : Linux --> Services" page and disabled everything except qmail. (I also set them so they are not auto-started at bootup.)
The problem is that after about 10 minutes or so... all the services are automatically restarted.
I have no idea what process is doing this, and it's driving me a little nutty.
Does anyone know how to permanently disable a service using the Klaxo/lxadmin control panel?
(Or at least, where I can find whatever monitoring system is checking if they are up, and then restarting them?)
View 2 Replies
View Related
Jan 30, 2013
I am using the following mod_rewrite rule for shortened SEO friendly links: RewriteRule ^blog/([^/]*).html$ /blog/blog.php?pid=$1 [R=301,L]
For Google SEO reasons, will the shortened rewritten link created from above be the permanent link, from the R=301? Even though the longer link is still functional? Or, do I need to create a rewrite match 301 rule to push the long URL to the shortened URL permanently?
View 5 Replies
View Related
Oct 9, 2007
Since I moved to vps emails are some how being blocked by hotmail.
I have a forum which needs email activation but those registering with hotmail do not receive emails
View 14 Replies
View Related
Jun 7, 2007
Now cpanel is having some issues. Certain places acknowledge the new IP, others don't. IE all of my nameservers are still set to the old IP's and I can't seem to change them because they are already asigned to the old ones, etc. What can I do to try to fix all of this? Is there an easy tool? Is there a file I can just change?
View 1 Replies
View Related
Jun 5, 2007
Question for people who have moved to InnoDB: I wonder if it is worthwhile?
I don't care about ACID compliance, my only interest is in the row level locking which I do not get with large MYISAM tables which do table locking and clog up everything. I have a huge database that needs frequent updates, like 50,000 per hour. I also don't care about InnoDB's large size of indexes and such, I have lots of hard disk to throw at it.
My fear is with the backup of InnoDB tables, and the fact that it is not as simple to "fire up" the tables when I restart the database. MySQL manual suggests something like a query to "Warm up" the tables.
Any thoughts would be great, and if possible, any help with what settings you use. FYI, I am on a 4GB RAM machine with dual Core2Duo procs. When I tried the following in my.cnf for the InnoDB stuff ---
Code:
#skip-innodb
innodb_buffer_pool_size=1G
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=250M
innodb_log_buffer_size=8M
innodb_data_file_path=/idbdata1:200M:autoextend
innodb_additional_mem_pool_size=20M
innodb_log_group_home_dir = /iblogs
innodb_log_files_in_group = 2
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=10
--- the MySQLD wouldn't start! Question about the stuff in red: what're those paths for?
Do I need to create those paths?
View 6 Replies
View Related
Jul 3, 2007
I been reading this forum for a while now and now i have a VPS for my blog. The reason i moved from shared to VPS was due to my old webhost told me i was usuing to many CPU power and it was causing the server to crash.
Now with the VPS same thing is still happening. My apache keeps hanging due to too many connections and only way to bring my site up is rebooting the VPS. i contacted the webhosting and they have me setup a cronjob to restar httpd every hour but that still doesnt do it.
This is killing me. I get around 1 million hits a month on my blog. I tried optimizing my apache and sql with the instructions i found here but it didnt help.
this is the plan i have:
Disk Space 30,000 MB (30 GB)
CPU Limit Equal Share
Guranteed Memory 256 MB
Burstable Memory 1024 MB
Monthly Bandwidth 2,000 GB
Control Panel cPanel / WHM
View 11 Replies
View Related
Sep 21, 2008
I recently moved my website from a shared hosting plan at Siteground to a VPS at WiredTree. All went well but I have this problem : When I try to access my website I can't. I get :
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
This happens only for my home computer. If I try to access the website from anywhere else (even via my mobile phone) it works like a charm.
I am thinking this might be a DNS cache problem. Anyone can help me better understand the problem and solve it?
View 11 Replies
View Related
Jun 24, 2009
I recently moved a site from one hosting company to another. I went to the registrar and pointed the DNS at the new nameservers, and set up a new ftp account to upload the site. The DNS seemed to resolve ok after a few hours, (in my browser I was seeing the new host's default home page) so I uploaded the site to the new host.
Today sometimes I see the new site and sometimes the old!
I'll be editing pages and uploading them by ftp, then suddenly I'll see a different directory structure on the remote server. Similarly I'll refresh my browser while looking at the new site and... Hey! I'm seeing the page on the old site!
I've cleared the browser cache on my machine btw.
My guess is that either a server somewhere in the path (at my local service provider?) is throwing out old cached versions of the page, perhaps when it is busy, or that not all the nameserver/dns records have updated.
View 8 Replies
View Related
Sep 23, 2008
I finally got my site moved over to Cartika's server. They were a big help with several issues I had, even fixing things that didn't have anything to do with their server.
I had to get a new template since the other one was only available at .wordpress but I like the new one much better anyway. I still have to go through each page to make sure I didn't forget to change some link or something. I also had to edit the php to work how I have it so I may have missed something (I haven't even seen php since 2003).
I'm writing a post about my initial impressions of Cartika and why I eventually chose them. I'll post the info at WHT when I finish it.
View 14 Replies
View Related
Sep 6, 2007
I just moved my site to point to a new server (changed nameservers) and everything is working fine but a subdomain.
My subdomain links.example.com still points to old site when example.com points to the new site.....
Should I delete that subdomain at the old host?
Should I just be patient?
Should I change nameservers for subdomain at old host?
The subdomain is configured at the new host already.....
View 0 Replies
View Related
Aug 14, 2007
I just moved my site to dedicated server due to shared hosting capacity problem. Again I am facing Too many connection problem, when i contacted go daddt they replied as follow
Quote:
Thank you for contacting Server Support. There are a couple of things you might want to check. First is how you have your httpd service configured. Make sure you have sufficient MaxClients defined in /etc/httpd/conf/httpd.conf. Additionally you will want to refer to your /etc/my.cnf file to make sure you have it configured to allow as many max_connections and max_user_connections as are needed.
I am using Redhat Fedora with Plesk as control Panel. Any help how i can change this Max_user_connections?
View 3 Replies
View Related
Apr 24, 2007
I recently moved a site from a hosting company to a VPS. I updated the name servers with the domain name registrar and the transfer went smoothly.
However one thing does have me puzzled. As I understand it (and correct me if I am wrong) my new hosting company are now the authority for my zone and should have a zone file which points my domain name at one of their IP addresses? However my previous host has a webbased email panel - if I log in to it I can still send email (but not recieve). This has confused me as I would have thought that my new ISP would have a zone file with an MX record for my email? How is this possible?
View 4 Replies
View Related
Jun 5, 2007
I'm currently getting DDoSed. I'm on a VPS and my host has asked me to get the troubled domain off the server asap.
Question is, should I move to a dedicated to avoid affecting other users? Or should I find some shared/VPS hosting which has ddos protection?
View 14 Replies
View Related
Sep 18, 2008
I host a handful of domains, using a whm/cpanel setup. It came time for me to move to a new server, and here's the process I took:
1. I created accounts for all domains on the new server.
2. Created all relevant mail accounts for each domain on the new server
3. Restored all of the files for each sub account on the new server
4. Updated the DNS for each sub account to point to the new server
I didn't, however, move my main domain to the new server yet. On top of that, I use Google to manage the mail for my main domain.
Now when I try to send email to one of the accounts for any sub domains (that is on the new server), the email bounces back as undeliverable.
View 11 Replies
View Related
Sep 4, 2007
If you check out [url], you can see that its not running super fast. The load is nothing, iostat, vmstat, etc don't show anything out of the ordinary. Is there anything else I can do to see what might be causing it? Am I just in need of some good mysql optimization?
View 6 Replies
View Related
Jan 5, 2007
one of my servers currently died (it was a 1u System) Dual Xeon, 3GB RAM. I need the DATA off my SCSI harddrives.. i have a 2U system only, but when i try and put the SCSI harddrive into the Machine, windows crashes on the "Windows 2003 " starting screen. Windows, ugh, horrible. I need to get into windows to get my MSSQL database's backed up and then moved to a new server.
View 11 Replies
View Related
Mar 16, 2007
I moved my content from www,mysite,com to subdomain,mysite,com. I'd like to direct people who come to my site from search engines to the new location of the content.
For example, if they searched for pink purse and the search result was www,mysite,com/pink_purse,html, when they click that link, I'd like for them to redirected to subdomain,mysite,com/pink_purse.html. Can this be accomplished with some .htaccess magic?
View 4 Replies
View Related
Jan 31, 2007
i install APF and RUN to Server i don`t know my APF is Coorect or no!
root@server [/]# apf -t
APF Status Log:
Feb 01 01:57:54 server apf(11506): firewall initalized
Feb 01 01:57:54 server apf(11565): {glob} default (ingress) input drop
Feb 01 01:57:54 server apf(11565): {glob} default (egress) output drop
what is meaning >> firewall initalized << ?
View 2 Replies
View Related