0
votes
0answers
12 views

.htcaccess RewriteRule without 301/302 error

I added the following Redirect-Rule to my .htaccess-file for my entire website: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] Basically it redirects URLs ...
0
votes
1answer
21 views

301 Redirect Root and Only Root (“/”) from https to http

I have found several Q/As on how to redirect root only, how to redirect from https to http (using .htaccess). But there was no question that merged both. And this answer is too dirty: ...
0
votes
1answer
39 views

How to use # in url as a redirect rule in htaccess for apache

I am having a difficult time figuring out how to have the following work: I am trying to redirect a url in htaccess I am trying to redirect from example.com/test.html to example.com/index#test I ...
0
votes
1answer
36 views

301 redirect on same hosting server

I originally bought the domain http://example.com with a hosting package and have run a Wordpress blog on that for a while. Now I've bought an added on domain http://example.com.au and have ...
0
votes
1answer
80 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
0answers
151 views

htaccess redirect affects bingbot, returning Redirection limit reached

Inside my .htaccess file, I have the following script: RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] <IfModule mod_rewrite.c> ...
-1
votes
1answer
155 views

http:// to https:// Redirection with page reload in Apache 2 (HD Web Hosting) [duplicate]

I'm trying to check to see if the address accessed is using a secure connection when accessing a certain page, or not. If not, I want to redirect the traffic to the proper https:// address. I have ...
0
votes
1answer
514 views

how to stop htaccess URL redirect loop [duplicate]

I am new to htaccess. so when i want to do a url redirect using htacces, i always get a redirect loop, and don't know how to fix it. I have been searching on the web but coundn't find a solution for ...
0
votes
1answer
105 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 ...
-1
votes
1answer
58 views

301 redirect help needed for urls with parameters

How do I 301 redirect all urls such as http://domain.com/languages/italian/itemlist.feed?start=[0-9]&format=feed http://domain.com/languages/italian/itemlist.feed?format=feed&type=rss to ...
0
votes
2answers
610 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
134 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 ...
0
votes
3answers
244 views

htaccess redirect with parameters

Current working url of acticles is following: http://domain.com/index.php/news/{CATEGORY_ID}/{ARTICLE_ID}-{slug}.html but I need this url to work also (via htaccess 301 redirect) ...
0
votes
1answer
142 views

Redirect all dynamic links served using https to http

So, here is the situation: We are running a website which is powered by Drupal. Sometime ago, it was decided that the website should be served as SSL. The settings to redirect the site from http to ...
0
votes
1answer
54 views

If I redirect all users (Except me) from within .htaccess, do I need a robots.txt file

So.. I have my live version of my site e.g v1.0 at domain.com I then have my development testing version at testing.domain.com I want testing.domain.com to only be accessible to me for testing, and ...
2
votes
1answer
82 views

Redirect one or more URL to just one, with regular expressions

In my website I have some pages that are reachable by two urls: .../page .../parameter/page In order to optimize the website for the search engines, I have to redirect all .../page urls to ...
0
votes
1answer
101 views

.htaccess to redirect all pages from domain to directory on same domain except root, /index.html, /index.php

I've searched and tried everything I've found and nothing seems to work quite right. What I'm trying to do is: redirect all pages from a domain (domain.com) to a directory within the same domain ...
0
votes
2answers
117 views

.htaccess rewrite all queries to static page

I have an account where hundreds of inbound links to their calender are showing up as 404 (they moved their site to a new platform). I would like to make a wildcard redirection of all URLs with a ...
0
votes
1answer
204 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 ^(.*)$ ...
1
vote
1answer
58 views

Strange 301 redirect behaviour

The 301 is redirecting but it is appending the old url onto the end of the new url, like so: http://www.example.co.uk/new-dir/new-page/?/old-dir/old-page/ This is my .htaccess RewriteEngine On ...
0
votes
1answer
217 views

301 permanent redirect with extensions and sub folders

i tried to permanent redirect 301 from http://example.com to http://example1.com RewriteEngine On Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^test\.example\.com$ [OR] RewriteCond %{HTTP_HOST} ...
0
votes
1answer
365 views

.htaccess 301 redirect, same server

I set up a website at mywebsite.net, but recently bought the domain mywebsite.com. Now I updated the information on Google via Webmaster Tools and it recommended we set up a 301 redirect from the ...
0
votes
1answer
920 views

htaccess rewrite all URLs (inc image hrefs) from one domain to another

I've got a wordpress blog on a subdirectory which I've recently migrated from a .com to a .co.uk (myurlstudio.com/blog to myurl.co.uk/blog). The problem is that many of the posts have images in them, ...
-2
votes
2answers
134 views

301 redirect from one subdomain.domain1.com to domain2.com

Title says it all really, I want to be able to 301 redirect from subdomain.domain1.com to domain2.com. I have full access to the servers and have tried various things using .htaccess but have had no ...
1
vote
2answers
5k views

How to redirect example.com from HTTPS to HTTP, then HTTP example.com to newdomain.com?

As of now I use this rule (in .htaccess of example.com) to redirect HTTPS/HTTP example.com to newdomain.com: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.com/$1 ...
2
votes
2answers
602 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 / ...
2
votes
1answer
585 views

Conditional 301 redirect depending on server (localhost vs production)

By practise I do a 301 redirect non-www -> www for my production server deployments. But I have a little annoying problem/discrepency with the .htaccess rewrite settings between my development server ...
0
votes
1answer
59 views

If my .htaccess is set up to 301 from abc.com to xyz.com, what would cause abc.com to be 302-ing instead?

Here's what my .htaccess file looks like: Options +FollowSymlinks RewriteEngine on #rewritecond %{http_host} !^abc.com/* [nc] #rewriterule ^(.*)$ http://www.xyz.com/$1 [r=301,L] But when I check ...
0
votes
2answers
319 views

How to make 301 Permanent redirect from old domain to new domain with .htaccess?

I have found a number of different solutions of what should be written in the .htaccess file but for some reason they don't work perfectly. I would like to redirect all content from old site to go ...
0
votes
2answers
74 views

301 Redirect only non-filesystem requests to new domain

I want to use .htaccess on an Apache server to redirect only calls to the server that are not files or folders in the filesystem. For example, if the server gets a request for: ...
0
votes
1answer
219 views

Apache .htaccess 301 permanent redirect

How can I make it so that whenever a page on mydomain.com is accessed without www to go to www.mydomain.com, please? Thank you.
1
vote
1answer
2k views

.htaccess 301 redirect produces 500 internal server error

I've added individual 301 redirect entries to .htaccess to redirect my old site's Mambo pages to the new site's Joomla pages, but the old URLs still generate 404 errors. Any ideas why? The format I ...
0
votes
1answer
58 views

.htaccess to rewrite migrated Wordpress site

I've moved my Wordpress from one domain to another, and I want the use .htaccess 301 redirects to redirect posts on the old domain to posts on the new domain. My webhost suggested I try the ...
0
votes
3answers
627 views

point multiple domain to single web hosting account

point multiple domain to single web hosting account using htaccess i have used the following .htaccess file in my public_html directory RewriteEngine on RewriteCond %{HTTP_HOST} ^site1.org$ [OR] ...
0
votes
3answers
703 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: ...
0
votes
1answer
661 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
3answers
652 views

Redirecting example.com/* to www.example.com/*

I just moved to a new host and they've got a different control panel than the one I was using before. On my old host, all domain.com/* addresses were 301 redirected to www.example.com/*, without me ...
0
votes
2answers
975 views

How to redirect http traffic to sub directory, without breaking application in subdirectory?

I have my main domain URL mapped to the root of my server I have a wordpress installation installed under /blogs/techblog I want to direct any traffic coming in at jameselsey.co.uk to > ...
0
votes
1answer
110 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 ...
0
votes
2answers
846 views

How do you redirect pages from a directory to a subdirectory?

I had recently moved all the content on my website from being in the www.mysite.com/shop directory to being in the root directory. This means that I needed to redirect any request to visit a page with ...
1
vote
2answers
1k 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
414 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
2answers
1k views

How to use 301 redirect in .htaccess by IP address?

I have transferred the website to different webhosting. Some users see old website since their DNS servers point to old webhosting IP. How can I alter the .htaccess in the old website to tell their ...
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) ...
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
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 ...