Skip to main content

All Questions

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
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
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
2 votes
1 answer
84 views

HTACCESS 301 : How to redirect all urls to HTTPS except spammy urls with a specific character?

I posted a question one month ago with great answers (HTACCESS 403 : How to block URL with a specific character?) : HTACCESS 403 : How to block url with a specific character? The problem is, I ...
Arnaud's user avatar
  • 35
0 votes
0 answers
111 views

implementing 301-redirect in .htaccess

I want to do a 301-redirect from my old php-URL to the new URL in my htaccess-file: redirecting https://www.example.com/subpage/location-1.php https://www.example.com/locations/locations/location-2....
renderline's user avatar
0 votes
1 answer
271 views

htaccess with 301 redirect for entire site except one page

I am using the following code in htaccess to redirect to new domain with 301: #Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] It works perfectly. ...
kadaktu's user avatar
2 votes
2 answers
217 views

htaccess one RewriteCond for multiple RewriteRules?

I have trouble with redirects in .htaccess. I have several domains (example.com, example.net, example.uk). I have set of RewriteRules for each domain. But for some reason, the redirects works for all ...
Radek's user avatar
  • 21
1 vote
1 answer
29 views

Redirect every trailing folder to main folder

i have a couple of unwanted urls that i want to redirect: /faq/ /faq/question/1-title /faq/question/2-title I want all the /faq/question/* urls to redirect to /faq, is that possible? I have this but ...
Kuubs's user avatar
  • 1,340
1 vote
1 answer
231 views

How to manipulate the URL with .htaccess for certain links

How can I manipulate the url by using .htaccess to make the url below work and shorten the size? I successfully removed the .php, .html extension from the url, but don't have a clue on how to ...
Adelle 's user avatar
0 votes
0 answers
40 views

RewriteRule and seo friendly address

So far, my website has been working on the following addresses: domain.com/item.php?id=XXXXXXXXXXXXXXX I wanted to change to seo friendly addresses and added to htaccess RewriteCond% {REQUEST_FILENAME}...
Mark's user avatar
  • 1
1 vote
1 answer
212 views

redirect url from htaccess file

I'm trying to bulk redirect my site link like this,I need to remove home from every link and redirect it to root directory as shown below. example.com/home/hello-world. example.com/home/tag/world. ...
ajax's user avatar
  • 23
0 votes
1 answer
264 views

How to redirect (htaccess) all URLs from within a directory?

I have this current scenario Redirect 301 /linux-distros/link-a/ https://www.example.com/ Redirect 301 /linux-distros/link-b/ https://www.example.com/ Redirect 301 /linux-distros/link-c/ https://www....
Henry's user avatar
  • 5,285
1 vote
1 answer
36 views

Htaccess redirect with folders

I am trying to create a list with numerous redirects (301) and do not want to change the order manually. Unfortunately, certain 301 redirects don't really work: RewriteEngine on Redirect 301 "/...
rudi77's user avatar
  • 23
1 vote
1 answer
67 views

how to write 301 redirect rule when urls have the same base

I have troubles writing 301 redirect rules in ht access. I can't find the right syntax. My problem is that two rules Redirect 301 /lessons/ https://example.com/lessons/piano/ Redirect ...
Nina's user avatar
  • 140
1 vote
1 answer
297 views

Redirect non www to www sub pages also

in .htaccess Am using : RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1/$1/ [R=301,L] It works fine for main domain i.e. redirects example.com to ...
Sam's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
19