-2
votes
1answer
42 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
27 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
24 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
35 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
101 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
858 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 ...
129
votes
5answers
13k 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
88 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
689 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
168 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 ...