General :: Want To Copy With Rewrite
Jul 23, 2010I want to copy but without asking method or -r option .
View 2 RepliesI want to copy but without asking method or -r option .
View 2 RepliesTo update it or just to rewrite if it is unstable.
View 6 Replies View Relatedi have the following script which takes as input parameter a webpage and extract the emails from it. The results are correct but i was wondering whether i could rewrite it in a better, 'cleaner' manner. I think my for loop is a bit. primitive and also each email is printed twice
Code:
#!/bin/bash
echo $1
echo "The script starts now."
echo "Hi, $USER!"
wget $1 -O webpage.txt
awk '
{
for (i=1;i<=NF;i++) {
[Code].....
I have this..
RewriteRule ^(apes|ape)/(.*)$ $2?fh=$1 [L,QSA]
I only want to match the directories ape/ and apes/ but I think it is matching any directory that ends in "ape" or "apes" or maybe does it match any string containing those characters in any order? I am not great at regex, and have read alot, but still not sure if I understand this correctly.
Now, I use Fedora Core (version 8) with core linux OS 2.6
I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.
I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
Is it possible or wise to use a program like 'testdisk' running on an Ubuntu 32-bit system to rewrite the MBR of a Windows 64-bit system hard drive? I am only asking because I am cleaning someone's HDD after they got infected with a Trojan called "Dos/Alureon.A. They were worried that they might have to do a re-partition and clean install.
View 4 Replies View RelatedI want to redirect [url] to [url] how to do this? The only solution that came up is just redirect everything to a php file, and than ask the php file do the redirect..... I want to do it using .htaccess file instead of using PHP or CGI.
View 4 Replies View RelatedI have done a2enmod rewriteand rewrite.load appears in the mods-enabled subdirectory.
My httpd.conf file contains DocumentRoot "/usr/appl/prod/htdocs/" <Directory />Options FollowSymLinks
AllowOverride All
Order deny, allow
[code].....
I have simple blog I created myself. I am using mod rewrite to redirect all to a php file. But I have links in google like [URL]
How can I match it with regular expression? I try with variants of ^([^/?]+)/$ but with no success.
The desired result is to redirect such addresses to [URL] or to 301 page
got a small setup in /home/username/public_html/.htaccess.
Code:
Action php-fcgi /~robert/fcgi-bin/php-fcgi-wrapper
the php-fcgi-wrapper is in /home/username/public_html/fcgi-bin/php-fcgi-wrapper or in the
[code]....
I want to rewrite one url using apache mod_rewrite,
myurl is [URL]
and want to rewrite like this. [URL]
I'm running slackware-current and I noticed that certain packages (qt, qt4, libplist) rewrites /etc/rc.d/rc.4 to it's original state. I modified my rc.4 to start SLiM (Simple Login Manager) before GDM/KDM/XDM and these packages just overwrite it. Fortunately, with slackpkg I don't have to apply these changes, but it's annoying to deny it every time.
I guess it's not entirely -current related, since qt3-3.3.8b appeared long time ago in extra/kde3-compat, but I can't tell for sure or test it right now (all my machines run -current)
I am creating a raid10 for our studio. I just realized after creating the filesystem that I would like modify one of the parameters - the blocksize. My original command:mkfs.ext4 -b 2048 -L insightRAIDvol /dev/md0I know want:mkfs.ext4 -b 4096 -L insightRAIDvol /dev/md0Is it ok to just issue this command even though a filesystem already is in place?I am hesitant to try this without knowing what the ramifications of this might be for the superblocks or some other unknown parameter to me that might cause problems in the future.As well I know I could rebuild everything from scratch but that's a day and a half of rebuilding
View 3 Replies View RelatedI've been playing around with rewrite rules and I cannot get it to work for what I'm trying to do.I want it so that when someone goes to http://www.mydomain.com/HWM/ it redirects it to /cgi-bin/HWM/somefile.cgiHere's the config for my virtual host:
Code:
NameVirtualHost *
<VirtualHost *>
[code]....
i use ubuntu 9.04 with lamp and i enabled mod_rewrite module for apache2 so i enabled 3 sites on which i am working. their configuration files in the folder etc/apache2/sites-available are identic even their absolute paths. it'all identic except their names. Below there is the content of one of these configuration files:
FIRST configuration file ->
<VirtualHost *:80>
ServerAdmin webmaster@localhost
[code]....
I am trying to setup a virtual machine server as a web development environment. Install and setup is going correct. To avoid any accidents I have the apache alias set to www.example.dev instead of www.example.com. The URL will redirect no problem but I need to find a way to have every instance of a link (example.com) show up as (example.dev) so that whole site will function on the server without linking to the live external site. I'm using git as a version control system that will push certain commits to my live site and thus want to avoid changing any configuration files to get this desired effect on my virtual machine. How to do this server side, maybe via PHP, apache2.
View 4 Replies View RelatedI wish to gain access to a USB flash drive. It is old and I forget how small. Could somebody give me insight into a way to mount it if the security code isn't letting me access it via /dev/sdx?
Code:
how could i rewrite and redirect
Quote:
[URL]
to
Quote:
[URL]
domain from forum. to club. (red color part) url rewrite, blue color part is variable
I have been working on this for the last couple of days, but I don't seem to be getting anywhere with it.
I have a Fedora 12 64bit Server set up, and for the most part it's working Great. I have 3 VHost set up, and no problems with that.
My problem is I just moved my Wife's xcart store from Godaddy to this server. And the store works great. But xcart is set up to use Clean URL's, and this is what I seem to be having all the problems with.
In my "httpd.conf" file, I have "AllowOverride All" to use ".htaccess" and in xcart ACP I have it set to use Clean URL's. I added a ".htaccess" file to root folder, with this in it.
Quote:
Now if you try to log in to the store with just the base url "www.my_site.com/" I get a the Apache Test page. But if I enter "www.my_site.com/index.php" the Home page opens, and all clean url's from there work fine. ALL other pages will open just fine. So clean URL's is working. Its just the home page that won't load right.
Now if I change the ".htaccess" file, and set "RewriteEmgine Off", then the home page will load like it should with the base url., but then "Clean URL's" no longer work. I have to change "AllowOverride All" to "AllowOverride None" and turn Clean URL's off in the ACP of xcart. to get the store working again.
Then the whole site works just fine, just No Clean URL's. I'm at my wits end with this, don't know what else to try to get this to work. So I was hoping someone here might have an answer, or at least some ideas to try. This all worked just fine on GoDaddy's site, I left because it was just too dam slow. It took a minute and a half just to load the Home Page. On my server its less that 2 seconds. And every time I asked them about it, it would speed up for a few days then slow down again. But the same .htaccess file worked on that server. So I think my problem is in my "httpd.conf" file just don't know where.
I need to have a postfix server to rewrite the sender's address. For example, if the sender is: [URL], then the recipient would receive all emails from [URL] as [URL]. I tried using the generic file and created a table out of it, but this did not work:
postmap /etc/postfix/generic
-rw-r--r-- 1 root root 9977 Dec 27 15:24 generic
-rw-r--r-- 1 root root 12288 Dec 27 15:25 generic.db
I added this line to the generic text file:
[code]....
I am running two boxes with postfix 2.3.3. and 2.1.1 respectively. Both need this configuration. I also added this line:
smtp_generic_maps = hash:/etc/postfix/generic
on the main.cf file. However, this did not work. The one running postfix 2.3.3 is on Centos 5.5, the other one is on SuSe Enterprise 9.
I've moved a web site from one server to another.I'm also moving the domain name to the new server.In Apache I've got the web site configured up and running with no problems. What I'd like to know if this is possible. I'm wanting to avoid a complete web site rewrite. I've looked into mod_rewrite but I don't think this is right.I only want the web site to look aesthetically pleasing. So if it's not possible so be it. (I'm not a programmer but do have access to the code)
View 2 Replies View Relatedi am trying to get this rewrite using a text file to work but it seems not to pick up the text or read it the way i want. here is what is happening i want to merge 2 domains .com and .net into one vhost file and one website. but the .net has alot of redirects which i want to put in a txt file bacuse there are over 200 line of redirects static.also exclude the robots.txt file. and i want the rule to look for any string be it after the first slash of with the url like so
[URL]
should use the map text file and rewrite.
txt file example
wsd/html/aboutus.html /aboutus
wsd/html/aboutus.htm /aboutus
wsd/html/aboutus.php /aboutus
[Code]....
I have a question during a new kernel compilation (I made a backup of my .config) file) However I ran into issues during the make oldconfig process and unfortunately I issued a make clean followed by a mrproper which cleared my existing .config file.
Since I have a backup of my previous .config file is there of restoring without changing the permission rights to file?
-r--r--r-- 1 root root 27754 2010-09-03 22:39 /proc/config.gz
I have a registered domain that resolves (via dyndns) xxx.mydomain.com to my external facing router -easy no issues there. Behind the router I have several machines (some VMs) running webservers, mail etc... What I want to be able to do is redirect the external traffic based on xxx to the relevant internal machine and serve the content back to the external world.
I have tried using a http rewrite of xxx.mydomain.com to the relevant machine an it works fine from within my network, however externally the re-direct fails as the master DNS servers have no record of internal DNS setup in my network (obviously).
So is there anything I can do to get xxx. recognized externally? I'm only just starting to get my head around how DNS, HTTP, TCP etc all hang together. Am I barking up the wrong tree with rewrite? Should I be looking at proxys?
I'm running Maya 2009 64 bits on Fedora 13 64 bits in GNOME Desktop and it's run perfectly, but the thing I cannot believe is the openmotif UI. I can't believe that a software like Maya on this gorgeous OS looks like a '90 MS-DOS program. Is there anything we can do from GNOME/Linux to change this? or this is a Autodesk lazy programmer that cannot rewrite their UI in at least GTK.
View 1 Replies View RelatedI'm pretty new to linux, and I'm facing a problem with an ext3 partition on an external hdd. I'm not sure whether the hdd is about to crash or not, however I've had a few problems accessing it in the past.
I have a second external hdd, the exact same drive, that has the exact same partition configuration, but holds different data. So, my question is; is it possible to backup the partition structure of the second working drive, and using this information to rewrite the partition structure of the failing hdd without damaging the data stored on that drive?
redirect a domain name with /abc to external ip of web server. Now I can made sure that I should use the rewrite module to achieve this issues. But I don't know how can I enable this function in my apache web server. I will post my httpd.conf for your reference.
View 14 Replies View RelatedI have a base install of a LAMP server on my system, and I'm trying to get mod_rewrite working on that local server (the directory of the local site is [URL]. I added this to my /etc/apache2/httpd.conf file, which was blank before I did so:
Code:
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
[code]....
It's supposed to redirect everything except the listed directories to index.php, which is used as a front controller. However, if I type in [URL] <any other page> I get a 404 error.
I have a website example.com, serving pages on port 80. I want the url example.com/redmine to be rewritten to port 3000, where my redmine server is running, without actually changing the URL. So the user typing in example.com/redmine/test would serve up example.com:3000/test, without the user actually connecting through the port. I know this can work through CPanel, but I don't know exactly how it was implemented. I'm looked at how mod_proxy, mod_proxy_html, and mod_rewrite,
View 4 Replies View Related