Questions tagged [mod-alias]
The mod-alias tag has no summary.
10 questions
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 ...
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 ...
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 ...
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 ...
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 ...
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]+)-(.*)/$ /...
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 ....
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 ...
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 ...
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....