0
votes
0answers
40 views

Proxy to SSL site (on another server) from a non SSL site

I have a *:80 virtual host in Apache 2.2.15 which is just a bunch of URL rewrites like: ServerAlias foo.bar biz.baz tit.tat RewriteRule / http://somesite.com (R=301,L) ServerAlias ...
-2
votes
1answer
50 views

Apache mod_rewrite with content moved to different subdomain [duplicate]

I have a url xyz.example.com for which contents were moved to abc.example.com. I know this can be redirected using mod_rewrite and had moved too, but when accessing xyz.example.com, in user's browser ...
0
votes
1answer
59 views

301 permanent redirection changing URL structure [duplicate]

I changed category urls on site. Old are like this: www.example-name.com/category-name-exactly-same-keywords/ ...
0
votes
1answer
49 views

Rewrite rule custom 301 redirection

I have link like this: www.example.com/full-image/folder/subfolder/image-name.jpg-some-custom-keywords.html and I need 301 redirection to url like this: ...
0
votes
1answer
77 views

Apache redirect to external site with directory

I have some requests like blogs.bobvilapaint.com/11/11/2011/title which I would like to redirect to staging.bobvila.com/blogs/title I've written RewriteRule ^[0-9/]+/[0-9]+/[0-9]+/(.*)$ ...
1
vote
1answer
36 views

re-translate a link to the proper directory

We have a folder on our website http://openeye.net/imagesa that's full of garbage data that external sites and half of the company uses as a dump directory. I'm planning on ultimately nuking it ...
0
votes
1answer
103 views

mod_rewrite seems to be ignoring condition statements

I'm dying on this htaccess: RewriteCond %{HTTP_HOST} ^[www\.]?old\.com [NC] RewriteCond %{REQUEST_URI} ^.+$ RewriteCond %{REQUEST_URI} !^wp-admin RewriteCond %{REQUEST_URI} !^index ...
0
votes
1answer
1k views

Apache server rewrite rules: how to avoid “implicitly forcing redirect (rc=302)”?

I've got a very annoying problem: our webserver handles 2 (more actually but let's say 2 for a simpler example): pretassur.fr pretassuragentimmobilier.fr Here's what I want to do: change ...
139
votes
5answers
17k views

Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted How to Know about Mod_Rewrite Rules but Were Afraid to Ask

This is a Canonical Question about Apache's mod_rewrite. Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This ...
0
votes
1answer
92 views

.htaccess redirect doens't work correctly

I'm using a .htaccess to get all documents from an old site to the new one. The old site doesn't support PHP or mod_rewrite. I tried the following code: Redirect 301 / http://www.new.com/archive/ I ...
0
votes
1answer
707 views

mod_rewrite: redirect from subdomain to main domain

I have two domains - domain.com and forum.domain.com that points to the same directory. I'd like redirect all request from forum.domain.com to domain.com (for example: forum.domain.com/foo to ...
2
votes
1answer
174 views

Redirect subdomain.xyz.com to subdomain.abc.com

Hey all, I'm trying to move to another domain, but have many subdomains under the existing domain. All the subdomains will be the same but just mapped with the new domain. [subdomain].xyz.com => ...
1
vote
4answers
268 views

htaccess mod rewrite problem

Let me start immediately with my problem: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^([a-zA-Z0-9_-]+)$ sinj.com.hr/index.php?var1=$1 [L] RewriteRule ...