How do I get the following redirect to work?
olddomain.com/employee-scheduling-software.html
To redirect to
newdomain.us/employee-scheduling-software.html
I do have mod_rewrite on, but I'm basically a complete novice in this area
...
Hi,
I want to redirect all my pages from example.com/video_player/vidinfo/456/game/halo-reach-coop-walkthrough-gameplay-in-hd/vtype/sd/ to example.com/video_player/vidinfo/456/game/halo-reach-coop-walkthrough-gameplay-in-hd/
using 301 redirects in htaaccess, any help is appreciated. Thanks
I want to remove vtype/sd/ from the url wh...
Anybody know an online tool to generate Apache mod_rewrite rules?
I'm thinking of simple standard scenarios:
Simple redirects (url1=>url2)
Removing / adding www.
/a/b/c/d to index.php?value1=a&value2=b...
and so on and so on....
I'm asking because most mod_rewrite questions turning up on SO could be answered with a link to that, an...
Me and my friend have had a website (http://www.ferfereh.ir - sorry not english) for a year. We've been using a Linux Apache host with wordpress installed. Now suddenly all of our posts (which had a permalink structure = /%category%/%postname%.html) have broke and says:
404 Not found
nginx
Maybe our host provider has installed NginX. ...
hey,
my php:
if(isset($_GET['text'])) {
$text = $_GET['text'];
} else {
$text = "default"; //if no ?text= set then print "default"
}
my .htaccess
RewriteEngine On
RewriteRule ^(.*)$ index.php?text=$1 [L,QSA]
the .htaccess works actually fine, except if i don't set text to my url my else statement ("default") doesn't work.
so if...
When a a rewrite rule to allow us to make friendly URL's with an ID number. The story is only pulled through the ID number, so the text at the end doesn't really matter.
RewriteRule ^news/([0-9]+)$ /news/$1/ [R=301,L]
RewriteRule ^news/([a-zA-Z0-9_-]+)/.*$ /news/story.php?id=$1
Our problem comes when any file linked within /news/i...
Is there a ruby script to generate password for .htpasswd? Thanks!
...
I have two questions regarding RewriteRule, but they're both closely related so I hope it's OK I ask them both in a single post.
The first is that I'd like to strip trailing index.html's from the end of any URL, e.g.:
http://www.example.com/index.html -> http://www.example.com/
The second is to display the URL http://www.example.com/...
I have a demo server where I put samples of my apps, I send potential customers links to those apps. Is it possible to use htaccess to track visitors, without adding tracking capability to the apps themselves? The data I'm interested in are:
date and time of page visit
ip of visitor
url of the page visited
referrer
post and get (query ...
Hi,
I am working on a web portal (PHP/MYSQL) which have 3 sections photos, videos, articles. Each section has its own submission form using which user will submit photos, videos or articles corresponding to their accounts.
So, that URLS which I thought should be like
http://example.com/
http://example.com/about/
http://example.com/c...
Possible Duplicate:
Rewriting an arbitrary number of path segments to query parameters
I want to replace every = and & in my %{QUERY_STRING} with a / via mod_rewrite
Example:
www.mydomain.com/path/?value=1&value=2
should become
www.mydomain.com/path/value/1value/2/
No matter, how many values are in the url and how they ar...
hi on my site google indexed www.mysite.com/* which isnt on my server ..this url came from some other external source..and its giving 404 error..so i want to redirect this url to my homepage ..how to do that ?
...
Hi there,
I have a set of files in a secure directory (currently secured by .htaccess, only 'the site' can access these files).
The files should only be available to members of the site; when they are logged in. I did have links in the members' area which went to a secure download script - however, using the readfile() function caused ...
What I have in each directory.
<Files *>
Deny From All
</Files>
I would like to put an htaccess file in my root main directory that does this:
1- prevents root access to any folder.
2- Redirects the user to one url should he try to access any root.
3- Still allow scripts to run and write in those directories publicly.
I also w...
How do i prevent php files from being downloaded "illegally" like through the browser. And what are some ways someone can use to download the php files?
...
I'm updating my dad's old website. 99% complete. He has an online learning course that was done using frames and 1500+ images/pages. I created a cookie based login script that uses mysql to track users and the validity of the cookie. On each "protected" page my script appears, the cookie is rewritten with a special "code" and the code is...
How can I ensure that .htacess file is working? Is there something in Apache config that would disable .htaccess? I add redirect directives that are not working. I even made a syntax error, which should prevent page in specified directory from loading, but it loaded anyway.
There is no AllowOverride in hppd.conf.
...
I have a plugin "Theme My Login" for WordPress 3.0.1 which causes my user's profile pages to be here:
domain.com/login-2?action=profile
instead of here:
domain.com/profile
So I am trying to fix it with mod_rewrite like this:
RewriteRule ^profile /login-2?action=profile
But it seems to do nothing. I suspect it's some weird thing happen...
Basically, what i wanna do :
change child.domain.com to domain.com/child
However, I already have a ReWriteRule in htaccess to change domain.com/child to domain.com?page=child. Of course, in htaccess, I also have a rewrite condition to ignore actual folders and files. But if i create a subdomain for child, the server will actually creat...
I have set up 2 drupal instances pointing 2 codebase with a common database
www.abc.com points to folder /var/www/abcfolder
mywww.abc.com points to folder /var/www/mywwwabcfolder
The content is uploaded via mywww.abc.com and www.abc.com is used for general viewing. I have used domain access module where mywww.abc.com is an alais to m...