Skip to main content

Questions tagged [mod-alias]

2 votes
1 answer
738 views

How do I match string in URL path at any level to specific file using mod_rewrite

It's likely that I missed the answer already because I'm not even sure how to phrase this, but here it goes... I'm attempting to create a healthcheck virtual--something "file", maybe, so ...
Vita's user avatar
  • 173
2 votes
1 answer
53 views

One Domain configured with two hosting server

We have Two servers : webserver (Server one) Server (IP: 198.51.100.44) Mobile server (Server Two) (IP: 203.0.113.88) One Domain name : example.com Once anyone opens https://example.com open the ...
Sumit Bhatiya's user avatar
2 votes
1 answer
234 views

301 Redirect from URL with query string to new URL without query string

I'm having trouble working out how to do a 301 redirect from: https://www.example.com/catalogue/catalogue.php?catSection=1 to https://www.example.com/hire-category/access-support-equipment/ I've tried ...
webfooted's user avatar
1 vote
1 answer
286 views

Htaccess redirect rule adds an unwanted variable

I'm trying to redirect logged-in users that land on a page to another page, but the redirect keeps adding the logged-in user's name to the path / URL. Say I'm logged in as Mario. The redirect ...
Gottano's user avatar
  • 63
3 votes
1 answer
282 views

htaccess conflicts

The issue that I'm currently forced to handle is related to a folder structure URL being redirected to the same folder structure URL but with a different string. So page-a used to exist but that ...
daniel4ing's user avatar
5 votes
3 answers
4k views

301 Redirects what does ([a-z]+)-(.*) and ([0-9]+)-(.*) mean

I just checked an .htaccess file with some custom redirects. There are two redirects I don't fully understand: RedirectMatch 301 ^/news/([0-9]+)-(.*) /blog RedirectMatch 301 ^/news/([a-z]+)-(.*)/$ /...
public9nf's user avatar
  • 289
3 votes
1 answer
982 views

Where to place 301 redirects in my Wordpress htaccess file?

I have about 25 301 redirects in my WordPress .htaccess file, that looks like this: Redirect 301 /store/index.html https://www.example.com/store-home/ At the moment they are at the bottom of my ....
Ben C's user avatar
  • 31
5 votes
1 answer
2k views

Execution order of different htaccess redirects

It seems that no matter what I search I just can't understand why I keep getting this issue and I for some reason can't find a good explanation on how it works. Also sorry if this quest was asked ...
Controvi's user avatar
  • 153
1 vote
2 answers
4k views

301 redirect with Apache: All paths of URL to a single path

I am migrating a website from one platform to another, and in that process, I'm getting rid of the old domain name. There is no direct relation between the paths on the old and new website, and ...
Kristian's user avatar
  • 161
5 votes
1 answer
1k views

Redirect percent encoded URL in .htaccess

Suppose I have the following URL: http://example.com/%D8%B3%DB%8C%D8%B3%D8%AA%D9%85-rss-%D8%B3%D8%A7%DB%8C%D8%AA-%D8%A8%D9%87%DB%8C%D9%86%D9%87-%D8%B4%D8%AF/ How can I redirect this to http://www....
PersianGulf's user avatar