Skip to main content

All Questions

0 votes
0 answers
16 views

.htaccess 301 redirect with # hashtag in the URL

i need to redirect a single url with a # within it. For some reason the system generated this. Old URL: https://testurl.com/part1#/part0229452 New URL: https://testurl.com/part1 I think that the '...
Johan van der Meer's user avatar
0 votes
0 answers
16 views

Redirect of entire site not working for sub-folders

I have implemented this change to .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?stakeholdermap\.com$ [NC] RewriteRule ^(.*)$ https://www.stakeholder-map.com/$1 [L,R=301] ...
projectmonkey's user avatar
0 votes
0 answers
18 views

redirect 301 every page that contains the same paramenter

Mod_rewrite - remove question mark with paramenter and redirect 301 in .htaccess Is it possible to remove the ?number= parameter that each of my pages contains and redirect 301 without this parameter? ...
MarcE's user avatar
  • 1
0 votes
0 answers
24 views

301 redirect from Cyrillic capital letters to lower

I need to redirect urls containing capital Cyrillic letters to lower Cyrillic letters as they generate 404 errors on the website. I have tried this: RewriteEngine On RewriteCond %{REQUEST_URI} [A-ZА-Я]...
Alexander's user avatar
0 votes
0 answers
22 views

Best way to handle 301 redirect for my product pages

I have a lot of products which currently have url structure like this: https://www.mywebsite.com/product-name1 or https://www.mywebsite.com/Product-name1 / capital P I have rebuilded my website using ...
Alexander's user avatar
0 votes
0 answers
19 views

How to redirect individual pages with URL parameters in .htaccess without causing a redirect loop?

I have an old website written in PHP in which all of the pages are served as parameters, in the format: https://www.mywebsite.com/index.php?action=view_page&course=main&type=sausages I'm ...
TunaSweetcornPizza's user avatar
0 votes
0 answers
14 views

Combined 301 Redirect www, https and subdomain

I have the htaccess lines below to redirect requests without www and https to https://www.domainname.com. RewriteCond %{HTTP_HOST} !^www\. [OR] RewriteCond %{HTTPS} off RewriteRule (.*) https://www....
KenAdamsTR's user avatar
1 vote
1 answer
124 views

htaccess: how to avoid repeated conditions/rules

Well known issue: Google indexing engine states it can see 2x2x2=8 duplicates of the URLs, where differences are http - https www - no www root/ - root/index.php (8 duplicates for the root URL, and ...
mja's user avatar
  • 69
0 votes
0 answers
258 views

.htaccess: Clear Browser Cache & Redirection

Use case is a Wordpress installation, with another in subdirectory setup through cPanel. Code was generated for standard redirection of subfolder to index.html in subfolder subDir: RewriteEngine On ...
Laurie Stearn's user avatar
0 votes
0 answers
15 views

most 301 redirect going to the same wrong page

I am moving one site to another. I have set up individual redirects. But all pages are going to the "home" page instead of the target pages. Those target pages are valid. What is going ...
John2's user avatar
  • 1
1 vote
1 answer
25 views

My htaccess redirects with regex aren't working

I have the following redirect in my htaccess: Redirect 301 "^/city/(.*)-north-carolina$" "https://example.com/US/NC/$1-north-carolina-hotels.php" When I enter example.com/city/...
AngryMob's user avatar
0 votes
0 answers
15 views

Unsure how to rewrite htacess to include 301 redirects... (Multiple RewriteEngine ons?)

I am VERY novice on this, having used 301 redirects for other websites a few times. This time, the website has an existing htaccess file that has some "bad bots" directives. Here is a sample ...
John's user avatar
  • 1
0 votes
1 answer
45 views

Strange Characters at end of URL and 301 wont redirect them to correct url

The below weird URLs popped up on Google console... I didnt add them and I dont know where they came from. https://www.example.com/gallery.html?page=3 https://www.example.com/gallery.html?page=2 ...
David's user avatar
  • 11
1 vote
1 answer
68 views

Regex 301 RedirectMatch in .htaccess not working

Some time ago my WordPress site was hacked and was redirecting all clicks from Microsoft and Google search results to a some kind of Japanese auto part store. It was happening for few weeks, during ...
Guntar's user avatar
  • 503
1 vote
1 answer
73 views

301 Redirect All interal pages to a new domains internal page via htaccess

I wish to 301 redirect all the internal pages of old URL to a singal destination of new URL via htaccess file. like I am looking to redirect http://www.advancedbuildings.org/...
Gaurav 's user avatar

15 30 50 per page
1
2 3 4 5
61