Hello Guys,
How to create .htaccess file for 301 permanent redirect. I am looking for exact code that we would put in the file.
Looking forward to hear from you all.
Thanks in advance.
I have setup OpenVPN on my server, and I am able to connect to it just fine, and browse the web, etc, from the client box.
If I set the following option in the client config, I can no longer browse the web via domain name:
redirect-gateway def1
On the server, I have run the following command:
iptables -t nat -s 10.8.0.0/24 -A POSTROUTING -j SNAT --to myserver'sIP
but that hasn't changed anything.
Can anyone help suggest something?
I have a form on my website.
When this form is filled out, it is then validated by a javascript validation function.
At the bottom of this function I have this piece of code:
window.location="../index.html";
This wont work on Chrome, but does work in Firefox.
My Q is, how can I make this simple redirect work on all (most) browsers?
Thanks
I'm trying to redirect one domain to the root and another to a directory. The problem I'm having is the second domain is overwriting the firsts redirection.
Here is what I have.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://example.site.net$ [NC]
RewriteCond %{REQUEST_URI} !^/.*$
RewriteRule ^(.*)$ / [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://example2.com [NC]
RewriteCond %{HTTP_HOST} !^http://www.example2.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{REQUEST_URI} !^/example2_directory/
RewriteRule ^(.*)$ /example2_directory/$1
I have a php page that takes in a bunch of url parameters and sends out an email. I am trying to have this page call another web page using the same url parameters, after the mail is sent. If I do the following, will my email be sent reliably? Is a redirect what I really want to do?
Random code to send email...
header('Location: http://www.othersite.com/' + $_SERVER["REQUEST_URI"]);
Hello,
I would like to know how I can redirect to a certain page (during maintenance) at a certain date between 12am and 6pm for example.
thanks!
Jasper
Hello,
I am trying to redirect from:
domain.com/uploads/$
to
domain.com/download.php?file=$
$ being the variable.
I have tried many different ways but do not seem to be redirecting, I've tried, R=301,L,QSA and in various different orders.
Anyone help? Thanks!
I tried to get robocopy in Windows 7 to generate a Unicode log, since I have files with Unicode characters. The command I used:
robocopy C:\mysource D:\mydest /mir /unilog:backup.log /tee
File the copy works and the onscreen output is correct, the log file itself just contains gibberish. This is regardless of whether I use the Command Prompt or the Powershell.
What gives? Am I doing something wrong?
I need to search our mail logs for a specific e-mail address. We keep a current file named maillog as well as a week's worth of .bz2 files in the same folder. Currently, I'm running the following commands to search for the file:
grep [email protected] maillog
bzgrep [email protected] *.bz2
Is there a way combine the grep and bzgrep commands into a single output? That way, I could pipe the combined results to a single e-mail or a single file.
I have a pair of Sennheiser 555 semi-professional headphones. These have a 6.3mm jack and a 3.5mm jack adapter. I wish I could buy an USB sound card for my laptop that would have a 6.3mm output not 3.5mm so I could skip this adapter and lose less quality.
Any recommendations?
I have one file that contains a list of files from a server, and a local folder that I compare to that manifest. Obviously, I do 'ls -1 listing_local' and then diff that file with listing_server.
But is it possible to diff the manifest and the output of ls immediately to the diff command?
show engine innodb status; is unusable in MySQL Workbench, as shown here:
=====================================120329 12:39:32 INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 17 seconds-----------------BACKGROUND THREAD-----------------srv_master_thread loops: 192438...
However show engine innodb status \G is great on the mysql command line client.
Is there any \G equivalent on MySQL workbench or better way to get this information?
This server is a Dell R200 running Ubuntu 8.04LTS using a LSI SAS1068E raid card supplied from Dell, I suspect that there might be some kind of RAID issue with the hardware raid built into the motherboard, but I can't seem to get MegaCLi to return any useful output:
root@81 $ ./MegaCli -AdpAllInfo -aALL
root@81 $ ./MegaCli -PDList -aALL
root@81 $
The disks work and AFAIK the raid software is installed correctly. I've seen this issue on RedHat issues also in the past. The RAID was initially setup through the BIOS on this server and appears to be functioning fine apart from this.
I bought ACERREVO, first I connected it to the SONY TV Via HDMI output for few days it worked very well and one fine day when switch the computer on it boots and TV screen becomes black and message on the TV shows -no input signal.
I connect it to Samsung LED TV, it did the same. What do you guys think the problem is how to tackle this issue. Any help is deepley appreciated.
My Dad bought a GeForce 8800GT graphics card quite a long time ago now. It has never worked in his PC.
Print out from a dxdiag:
System Information
Time of this report: 4/13/2010, 19:52:40
Machine name: USER-PC
Operating System: Windows Vista™ Home Premium (6.0, Build 6001) Service Pack 1 (6001.vistasp1_gdr.091208-0542)
Language: English (Regional Setting: English)
System Manufacturer: To Be Filled By O.E.M.
System Model: To Be Filled By O.E.M.
BIOS: Default System BIOS
Processor: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (4 CPUs), ~2.3GHz
Memory: 2046MB RAM
Page File: 1045MB used, 3296MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 10
DX Setup Parameters: Not found
DxDiag Version: 6.00.6001.18000 32bit Unicode
DxDiag Notes
Display Tab 1: No problems found.
Sound Tab 1: No problems found.
Sound Tab 2: No problems found.
Sound Tab 3: No problems found.
Input Tab: No problems found.
DirectX Debug Levels
Direct3D: 0/4 (retail)
DirectDraw: 0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay: 0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow: 0/6 (retail)
Display Devices
Card name: ATI Radeon HD 2400 PRO
Manufacturer: ATI Technologies Inc.
Chip type: ATI Radeon Graphics Processor (0x94C3)
DAC type: Internal DAC(400MHz)
Device Key: Enum\PCI\VEN_1002&DEV_94C3&SUBSYS_00000000&REV_00
Display Memory: 1012 MB
Dedicated Memory: 245 MB
Shared Memory: 767 MB
Current Mode: 1280 x 960 (32 bit) (75Hz)
Monitor: Generic PnP Monitor
Driver Name: atiumdag.dll,atiumdva.dat,atitmmxx.dll
Driver Version: 7.14.0010.0523 (English)
DDI Version: 10
Driver Attributes: Final Retail
Driver Date/Size: 8/22/2007 02:43:14, 3021312 bytes
That info is from the current card that is installed in it and has been installed since its purchase roughly 3-4 years ago.
When I physically install the card I put it into a purple slot on the motherboard that the old card was in (if I go into the device manager and select properties on the current card it confirms that the slot is a "PCI Slot 16 (PCI bus 2, device 0, function 0)") and boot up the computer but get absolutely no output. The screen that we have registers that it is connected to something (by not displaying the screen it does when the cable is unplugged) but just remains blank, no output at all.
I recently took the card to my University and one of my friends who is better with hardware issues than I am tried it in his system and it worked perfectly. No issues whatsoever. I do not have a spec list for his system but I could get one if you need it.
If you need any more information on this issue I will be happy to supply you with it as I am starting to get very annoyed with this problem ^_^
Hi all,
Quick question.
I have a firewall with these simple rules:
iptables -A INPUT -p tcp -s 127.0.0.1/32 --dport 6000 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.16.20/32 --dport 6000 -j ACCEPT
iptables -A INPUT -p tcp --dport 6000 -j REJECT
Now, suppose I am using TCPDUMP like this:
tcpdump port 6000
And I have host 192.168.16.21 trying to connect to port 6000.
My question is: will/should tcpdump output some packages coming from 192.168.16.21?
I am trying to equal something from last command with bash if statement:
#!/bin/bash
monit status
if [ "status" != "error" ]; then
echo -e "hostname\ttest\t0\t0" | /usr/sbin/send_nsca -H hostname -c /etc/send_nsca.cfg
exit 1;
fi
Even if the monit status gives out status = online with all services it runs the echo command. I can not figure out how to make the if statement match the status of monit status output.
I need to output some complex equations in Word 2010 (docx). To do so I write most of the equations in tex and use pandoc to translate them as Word formulas.
However I have a problem with the following tex equation:
\sum_{m=1}^\infty\sum_{n=1}^\infty
In Word the resulting two summation signs are not of the same size but the latter is smaler than the first one. Is there any workaround to solve this?
I would deeply appreciate any help.
Thank you
Andy
1) Here is the command to install special package (for example system/header)
#pkg install system/header
2) ALso we can install several packages
#pkg install system/header network/ssh package/rpm
3) Here is the command to show all available packages from special group
#pkg contents -o fmri -H -rt depend -a type=group solaris-desktop
How to install all packages from a special group in one command? (How to send output from the third command as an argument to second?)
I have a sequence of images 001.png 002.png 003.png that I would like to combine into an animation.
I used the following command
convert -dispose 3 -loop 0 *.png out.gif
And it looks ok. However, when I tried this
convert -dispose 3 -loop 0 "001.png" "002.png" "003.png" out2.gif
out2.gif was not as "smooth" as out.gif.
Why is there a difference in the output between the two commands, which seem to mean the same thing?
I'm having strange problem with my putty console. I'm establishing connection over ssh to my home computer [ windows 7 + freesshd server ]. Everything works just fine, but I'm getting this tiny screen with output, I can resize it of course, but the content is still in small box [ content doesn't resize ]
I've tried to change the number of columns and rows in properties, but it didn't change anything. The same thing is with cygwin client.
I'm looking for a piece of software or a script that will take my iTunes library and give me an output (either as HTML or PDF) of simply a list of all the albums I have, preferably as Artist - Album format. Working with iTunes 9 on a Mac.
Hello,
I'm wondering how to copy a chunk of output in the command prompt in Windows 7. What I'm ultimately trying to accomplish is when I type "route print" I want to copy the IPs listed under IPv4 Route Table. I used the findstr command to grab 1 line at a time but is there a way to grab the whole table in one shot?
Thanks,
Am I right in thinking a laptop's female DVI output could be used to plug into a VGA monitor using this adaptor? http://www.nextag.com/Cables-Unlimited-DVI-I-79280721/prices-html?nxtg=d8a0a240511-404B0D198D279591
This would be a 2nd external monitor on a for a laptop's docking station
Am I right in thinking a laptop's female DVI output could be used to plug into a VGA monitor using this adaptor? http://www.nextag.com/Cables-Unlimited-DVI-I-79280721/prices-html?nxtg=d8a0a240511-404B0D198D279591
This would be a 2nd external monitor on a for a laptop's docking station