0
votes
0answers
18 views

Google Indexing PHP pages with and without backslash [duplicate]

How can we use the .htaccess file to only have our pages indexed by Google without the trailing slash. Right now both pages are being indexed.
2
votes
2answers
40 views

non-cachable Canonical redirect of www to non-www

I know this question is debatable for the whole eternity, and most likely nobody knows the real philosophy of this problem. But I'm trying to solve the problem about 301 and 302 response headers in ...
1
vote
2answers
47 views

Multilingual website without any index file in the root folder

My client has a very simple website with two different languages and I decided to make a separate folder for each language, for example: domain.com/en/ domain.com/de/ But in the root folder there's ...
0
votes
1answer
71 views

Code for redirecting an HTML page without an extension using an .htaccess file results in a 404 error

I'm trying to redirect an HTML page to a WordPress page which has no extension. The result of redirecting example.com/fa/home.html to example.com/fa/ is a 404 page not found. As you can see they're ...
1
vote
1answer
90 views

301 redirection removes UTM tags from URLs

A page redirects to another page using a 301 redirect in a .htaccess file. If try to access the page from a URL with UTM tagging after redirection, it removes all UTM tagging. Is this normal ...
0
votes
4answers
34 views

Problem getting rewrite from subdomain to directory to work

I want to redirect demo.example.com to example.com/my-demo. This is my rewrite rule, but I'm not getting it to work on my production server: RewriteCond %{HTTP_HOST} ^demo\.example\.com ...
1
vote
1answer
69 views

Redirect all paginated pages to their main category page

I want to redirect all the paginated pages of the category pages to their respective category pages, because I don't want google to crawl the paginated pages. If my paginated category page URL is: ...
0
votes
1answer
53 views

301 redirect to the new website but without apostrophes in the URL

I am trying to 301 a page that has a ' in the URL and regular redirect 301 doesn't work. Is there a way to match part of the URL until the ' and use that to 301 to a new page? Example URLs are below: ...
1
vote
1answer
192 views

htaccess/cPanel 301 redirects not working for add-on domain

I've already looked at many samples and tutorials how to set up those 301 redirects on Apache and can't figure out why some are not working. Whenever I want to redirect any still existing page from ...
0
votes
0answers
54 views

How to prevent a 404 Error when creating a subdomain and using www to access it?

I have installed a multi-site installation of WordPress onto my domain. I then added the necessary code to the wp-config.php file and .htaccess as instructed by WordPress. I also installed a plugin ...
1
vote
1answer
48 views

Confused about redirect and robots.txt

I am updating a site by creating new pages and deleting old ones. To avoid crawling errors should I use both a robots.txt file and 301 redirect on .htaccess? robots.txt: Disallow: /products.php ...
0
votes
0answers
50 views

.htaccess and 301 redirects .co.uk to .com

I want to redirect a .co.uk to .com: example.co.uk/any-file-or-folder and example.com/any-file-or-folder to www.example.com/any-file-or-folder. I've refered to this question/answer: htaccess and ...
3
votes
1answer
111 views

301 Redirect a domain to another domain, but keeping the subdirectories the same

Is it possible to configure a top-domain (http://x.com) (DNS/.htaccess/else?) to redirect to another domain (http://y.com), whilst if you navigate http://x.com/subdir/index.html, you'd see the files ...
2
votes
1answer
48 views

SEO results in updating periodically a 301 redirect

I'm in the unfortunate situation of managing a very old website, that has been passed by the hands of at least 5 webmasters. Each has implemented new sections and other pages without regarding ...
2
votes
1answer
88 views

How do I do a catch-all .htaccess redirect?

A site has moved from example.net to example.com/ie/en/. (In other words, it’s moved from being its own domain to being a subfolder in a larger site.) However, the page structure has also changed. I ...
1
vote
3answers
149 views

Remove all content not related to index.html from the web and google

I have seen many suggestions on various redirects, but none were simple and many had no accepted answer. I have a site I wish to completely remove from google and have only my homepage available In ...
0
votes
1answer
33 views

301 redirect specific URLs

I have a lot of 404 pages looks like that: lalala/lalala/Users_PasswordReminder.aspx?something=lala lilili/lilili/Users_PasswordReminder.aspx /Users_PasswordReminder.aspx?username=admin etc. I ...
0
votes
1answer
60 views

Redirecting a Preview DNS subdomain to a domain with htaccess

I want to redirect all the WordPress urls of the form http://example.com.previewdns.com/my-favorite-post/ to http://example.com/my-favorite-post/ I am trying to do this with the below .htaccess ...
4
votes
1answer
78 views

Is there any difference, from Google's point of view, on the method used for a 301 redirect?

I have a website with an extremely good Google rank for it's particular niche. I've rebranded and need to redirect to a new URL. In the eyes of Google, what's the difference, if any, between the ...
0
votes
1answer
39 views

SEO changing main domain in Google Search results?

At the moment there is 3 domains pointing to same server for content, and of course their have the canonical URL set to tell Google about the duplicate content, but the questions is, if we take into ...
2
votes
1answer
73 views

Rebranding: how do I redirect my website to a new domain, and blog to a subdomain?

I have a website that I am rebranding and using a new domain name for. Right now it is primarily a blog hosted at the root. I am going to be redirecting from www.old.com to www.new.com, and I also ...
1
vote
1answer
262 views

301 redirect causing Bingbot to crash, 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> ...
0
votes
1answer
138 views

Remove query string from 301 redirect URL

I'm having some trouble with redirects and I haven't been able to get this to work. I want to make http://www.mysite.com/seasonal/christmas?p=15 redirect to ...
1
vote
1answer
114 views

Rewrite URLs not working - wrong method or conflict?

I've been at this for about an hour now and I'm not having much luck. htaccess files are quite new to me, so I'm obviously doing something very wrong. Current htaccess content, which I need to keep: ...
3
votes
1answer
785 views

Using .htaccess to set a cookie and 301 redirect

I currently have in my .htaccess: RewriteRule ^$ http://chfmaine.com/ [CO=moved:yes:chfmaine.com:1/,R=301,NE,NC,L] I was basing this off of this post. That's a lot more than I need but the setting ...
1
vote
2answers
364 views

Redirect link of old webpage to new webpage in Joomla 2.5

I have modified my website www.vidyaniketan.in. It is a Joomla 2.5 site. When I search for it in Google by URL, there are several sub-links displayed (e.g., "ABOUT US"). this links to the old webpage. ...
0
votes
1answer
38 views

.htaccess 301 Redirect [duplicate]

How do I make it so all traffic is directed for the entire site and all subdirectories from non-www to www Here is my .htaccess contents: RewriteEngine on <IfModule mod_suphp.c> ...
0
votes
2answers
59 views

htaccess 301 redirect for payment page

I have a client who currently runs a venue and has ticket purchases made available through a third party. The way the site currently works is that there is a standard href in the nav menu to the ...
2
votes
2answers
98 views

301 redirects and non-existent directories

I just wanted to clarify something; my boss often messes up and tells a customer to go to a specific directory; i.e. mysite.co.uk/directory/ instead of the actual correct URL ...
0
votes
1answer
254 views

301 redirect conflicts with cname redirect for both naked and www URL

Client had created a cname redirect for their www url which goes to their new web address, they were told to create a 301 redirect for the naked url but it's conflicting with the cname and the www url ...
0
votes
0answers
174 views

Redirect using .htaccess for missing images

I have image file URLs getting generated by Drupal CMS as: ...file.pdf?itok=xbXNF I simply want to check till the .jpg part if it does not exist. If it does not exist then I want to do a 301 redirect ...
0
votes
2answers
280 views

301 redirect all pages with a specific extension

I have a website that is not on ASP anymore, it's a Drupal 7 website now. I need to use an .htaccess file to redirect with code 301 all pages with .asp extension to the 404 page or a specific URL. ...
1
vote
1answer
97 views

Should limitstart=0 should be 301 redirected or have canonical tag to it

i have multiple categories with pagination. wherein limitstart=0 are there and is similar like category home page Wondering, should a 301 redirect through htaccess is advisable or shall i apply ...
0
votes
2answers
309 views

Does it make sense to throw a 404 error with PHP?

Problem Description Hi, The current setting of my .htaccess file does not allow any kind of 404 (as far as I know). I mean, it captures every kind of url like mysite.com/asfasfasf then sends it to ...
2
votes
2answers
231 views

How can I track clicks on various links pointing to same redirect using Google Analytics?

I'm doing a marketing campaign for an app where I'm targeting different schools. I want to know how many people have clicked on each link. The number of schools is pretty big, so I don't want to ...
0
votes
1answer
102 views

Cyclic redirection in .htaccess

I have the following .htaccess file: AddDefaultCharset utf-8 RewriteEngine on Options +SymLinksIfOwnerMatch RewriteBase / # redirect all www-requests to no-www # - RewriteCond %{HTTP_HOST} ...
4
votes
2answers
181 views

One million redirects

What's the best way to redirect 1,000,000 unique URLs to another 1,000,000 unique URLs? These pages are all combinations of multiple search filters and queries. We're migrating the site to cleaner ...
1
vote
2answers
320 views

Google is indexing main domain despite 301 redirect to subdomain

I had applied 'redirect 301' from main domain to subdomain and Google had indexed sumbdomain (and links under it) for years. Now, for some reason Google has started indexing the main domain while ...
1
vote
2answers
195 views

SEO penalization after 301 redirect

A client asked to re-do his website entirely. After I finished, I uploaded the new website into a folder of the old one, so the new one is in www.oldwebsite.com/new/. The old has few pages, static ...
0
votes
1answer
42 views

Why would my new WordPress site require a 301 redirect?

I just finished moving a site from localhost to its final domain, and the thing is that the SEO guys is saying I need to make a "301 redirect" from the old site to the new one, but there is no such ...
1
vote
1answer
97 views

Htaccess 301 redirect dynamic URL

I don't know a whole lot about .htaccess rules so forgive and help me ask the correct question. Currently I have a .htaccess rule like: RewriteRule ...
1
vote
0answers
81 views

Website starts showing 404 after 301 redirects via .htaccess [closed]

One of my clients websites started getting 404 messages on some pages after doing 301 redirects via .htaccess file. I don't understand why that happens, could someone tell me what went wrong? The ...
0
votes
2answers
135 views

Need to redirect all files/folders under subfolder but leave subfolder alone

I hope my title makes sense. Here is what I have: On our previous website, we had URLs similar to the following: www.example.com/support/BIOS/JXT/0ABWDA22.zip This same file on our new site has the ...
2
votes
1answer
682 views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
0
votes
3answers
545 views

301 redirect from “/index.html” to root if index.html not exist

Can I create 301 redirect from "index.html" to root directory if file "index.html" not exist? For example: link "http://example.com/index.html" show "404 Error" page. I need 301 redirect to root ...
0
votes
2answers
241 views

Redirect pages to fix crawl errors

Google is giving me a crawl error for pages that I have removed like www.mysite.com/mypage.html. I want to redirect this pages to the new page www.mysite.com/mysite/mypage. I tried to do that by ...
3
votes
1answer
147 views

301 redirects… www. > http … the entire sitemap

I submitted a duplicate sitemap some time back to incorporate the www. addresses when I saw my site was not directing there when I typed it directly in the address bar. As I have edited my site and ...
0
votes
1answer
84 views

Most efficient way to forward domain.com to example.com/subfolder?

Title says my entire question. I think I saw someone forward domain.com to example.com/subfolder and have spent about a week trying to figure out how to best do this.. My goal is to have user type in ...
2
votes
2answers
388 views

HTACCESS Wildcard Subdomain forward to Domain

I know this may seem like a duplicate, but I am unable to find a solution. Is it possible to setup wildcard subdomains with htaccess? I have an example of http://test.domain.ca I need to forward ...
2
votes
1answer
229 views

Is my .htaccess settings hurting SEO?

I have a site that I have redirecting to HTTPS. I do this to leverage wildcard SSL for my password protected pages. Everything seems to work fine with testing. For example, whether you type in HTTP or ...