0
votes
1answer
51 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
43 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: ...
2
votes
2answers
200 views

Use subpath internal proxy for subdomains, but redirect external clients if they ask for that subpath?

I have a VirtualHost that I'd like to have several subdomains on. (For the sake of clarity, let's say my domain is example.com and I'm just trying to get started by making foo.example.com work, and ...
0
votes
1answer
93 views

redirect a directory to a new domain without touching the main website

I would like to redirect https://mineyourmind.de/forum to https://mineyourmind.net/forum . Every rewrite rule I could google didnĀ“t work, they also redirected the main domain (mineyourmind.de). Im ...
0
votes
2answers
111 views

How to simulate Apache [END] flag on a redirect?

For business-specific reasons I created the following rewrite rule for Apache 2.2.22 (mod_rewrite): RewriteRule /site/(\d+)/([^/]+)\.html /site/$2/$1 [R=301,L] Which if given an URL like: ...
0
votes
2answers
536 views

Redirecting https urls to the http equivalent using htaccess file

The situation I have is that I have made a new website for a client, the URL format of which is http://newsite.com. The clients old website used SSL and had the URL format https://www.oldsite.co.uk. ...
0
votes
1answer
125 views

RewriteRule (to remove .php) and old redirect 301 not working?

I'm not experienced in editing .htaccess I wanted to redirect non-www to www. remove .php extension set up a custom 404 page I managed to do this (looking for solution in the web and on ...
3
votes
3answers
208 views

The 301 'www' nightmare. How do I change back?

About six months ago, I decided it would be best to put my website on the naked domain, let's just say 'example.com'. I did what all the instructions websites have told me with adding a 301 redirect ...
0
votes
1answer
50 views

Apache - How to Ignore Paths and Paramaters in 301 Redirect

Say I want all requests to example.com to redirect to abc.com. How can I make everything redirect to the root of abc.com and not include any paths or parameters included in example.com? For example ...
0
votes
3answers
222 views

Apache rewrite - Redirects to example.com// instead of example.com [duplicate]

When trying to redirect an URL in apache from: www.example.com to example.com it redirects to example.com// This is a one page webserver, Fixed IP goes directly to the page. Editing ...
0
votes
1answer
190 views

rewrite redirect issue in debian squeeze

My server os is debian squeeze. I have these lines to redirect non-www to www in htaccess file of my website: RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^(.*)$ ...
2
votes
2answers
583 views

How do I do an .htaccess 301 redirect of a query string?

I'm trying to redirect a url http://domain.com/?p=106 to http://domain.com/?p=110 My .htaccess file looks like this: RewriteEngine On RewriteCond %{QUERY_STRING} ^p=106 RewriteRule / ...
1
vote
2answers
1k views

mod_rewrite and VirtualHosts: how to redirect 1 site, but keep the others?

I host 4 virtual hosts at a dedicated CentOS 5.6 server: # rpm -qa|grep http httpd-2.2.3-45.el5.centos.1 One of them is my Drupal 7.2 site and another was holding static texts and fotos belonging ...
0
votes
3answers
664 views

mod_ReWrite to remove part of a URL

Someone has incorrectly linked to some of my urls causing 404 erros in Google Webmaster Tools. Here is an example Linked URL: http://www.example.com/foo-%E2%80%8Bbar.html Correct URL: ...
137
votes
5answers
16k 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
637 views

Apache 310 redirect with wildcard URL

I'm trying to redirect this... http://www.wfmc.org/administrator/components/com_civicrm/civicrm/extern/url.php?u=878&qid=3686395 -- Where '&qid=3686395' varies from link to link. How can I ...
0
votes
1answer
108 views

mod_rewrite, 301 problem

Currently I can access specific site in two ways: 1. http://a.com/foo/bar 2. http://a.com/index.php?url=foo/bar What I'm trying to achive is to allow to do it only using first way, and make ...
1
vote
2answers
993 views

301 Redirect and query strings

I am looking to create a 301 redirect based purely on a query string see b OLD URL: olddomain.com/?pc=/product/9999 New URL: newurl.php?var=yup My normal way of doing this would be redirect 301 ...
0
votes
2answers
407 views

Can reduce the rewriteRule to one rule from multiple RewriteConds for 301 in htaccess?

I am doing 301 redirects for old sites to a single site, rather then having to add the same RewriteRule more then once, is there a way to say write it once? that way i just need to add the rewriteCond ...
0
votes
3answers
2k views

301 redirecting second domain to first via htaccess, mod_rewrite whilst preserving subdomains - any tips?

I've been hunting around the tubes today, but given my limited mod_rewrite and regular expression knowledge I'm struggling. What I'm trying to achieve is a rewrite of domain1 (including subdomains) ...
1
vote
2answers
1k views

Redirect permanent www.url.com --> www2.url.com

i have trouble to redirect (via .htaccess) an url like this: www.url.com/index.php?option=com_content&task=view&id=60&Itemid=22 to www2.url.com/something.htm I figured out that the ...
0
votes
2answers
2k views

Apache2 - mod_expire and mod_rewrite not working in httpd.conf - serving content from tomcat

I am using apache2 server running on debian which forwards all the http request to tomcat installed on same machine. I have two files under my /etc/apache2/ folder apache2.conf and httpd.conf I ...
0
votes
1answer
82 views

switch mod rewritten URL

We are using a mod rewritten URL within our PHP site, this is the rewrite rule we are using: RewriteRule ^category/([^.]+)/([0-9]+)/([^.]+)/([0-9]+) ...
0
votes
1answer
261 views

Wordpress Rewrite Redirect Failure

I'm helping a friend recover from the mess outsourcing a wordpress website caused him (mistake #1) and I have this weird error. The hosting he is using appears to be redirecting www.domain.com to ...
0
votes
2answers
236 views

301 Redirect. Need help. Having a hard time

I'm trying to redirect URLs and can't get anything to work. Here is what I'm hoping to do: Old URL: www.example.com/asp.pl?_puri=astore.amazon.com%2Fthegi02-20%2Fdetail%2FB0001L0DFA%2Fassid Needs ...