Questions tagged [mod-alias]
10 questions
5
votes
1 answer
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.example.com?
PersianGulf
- 269
- 2
- 10
5
votes
3 answers
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]+)-(.*)/$ /blog/$1
Both redirects are redirecting the…
public9nf
- 289
- 2
- 7
5
votes
1 answer
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 before but I have been searching for an answer for 2…
Controvi
- 153
- 4
3
votes
1 answer
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 document is now known to be page-b. All the other…
daniel4ing
- 33
- 3
3
votes
1 answer
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 .htaccess file, below the usual WordPress rewrite…
Ben C
- 31
- 1
2
votes
1 answer
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 whenever the address ends in something like .../check it is…
Vita
- 173
- 6
2
votes
1 answer
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 server one page. if anyone opens…
Sumit Bhatiya
- 21
- 1
2
votes
1 answer
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 a few things including from this thread: Remove…
webfooted
- 21
- 3
1
vote
2 answers
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 therefore, I want to redirect all old paths to the new…
Kristian
- 161
- 2
- 7
1
vote
1 answer
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 includes that username into the redirected path,…
Gottano
- 63
- 3