213 questions
0 votes
0 answers
26 views
Apache AliasMatch: map certain directory when matching specific string - infinite loop
I am facing a particular request from the SEO team of a client and I need to handle two different CMS served on the same domain. Basically, the "root" cms is already configured in order to ...
0 votes
0 answers
603 views
favicons return 403 forbidden on local machine
We have recently upgraded our favicons so that they are accessed via the apache Alias function. They work just fine on several of our servers, but on my local development machine they return 403 ...
1 vote
1 answer
54 views
RewriteRule and RedirectPermanent conflit (adds query string)
All of my RedirectPermanent rules add a query string to the URL. That unwanted query match the redirected rough URL redefine by RewriteRule as followed : RewriteRule ^page-([0-9]+)-(.*)$ index.php?...
1 vote
1 answer
144 views
.htaccess rule to 301 redirect without parameters
I have a problem with .htaccess rules: I want to redirect this url: /productos/ficha/carretillas-termicas/dx.html To this one: /productos/ficha/carretillas-termicas/grendia-es-serie-fd20-35n3.html I'...
0 votes
1 answer
461 views
.htaccess on SiteGround doesn't support redirects using encoded spaces in file names?
I'm here after not having success speaking with the tech support at SiteGround.com. I can redirect any file, using proper rules in the .htaccess file, EXCEPT for files that contain a space. This ...
1 vote
1 answer
875 views
Apache Redirect /api Requests To Directory
I come from a C# MVC background but I am currently working on a PHP project. In C# you can setup decorators to specify the request URL using something along these lines: [HttpGet] [Route("/...
0 votes
1 answer
118 views
Refreshing an Added Alias Directory to Apache's HTTPD
I'm exposing files using Apache's httpd <Directory> as below Alias /getfiles "/web/playbooks/tmpfiles" <Directory "/web/playbooks/tmpfiles"> Options Indexes ...
1 vote
1 answer
92 views
Htaccess redirect only top level URL
I would like to redirect a top level page using htaccess, but not redirect tier pages. Let me explain. I currently have this redirect in place: Redirect 301 /support /donate In summary, I want ...
0 votes
2 answers
47 views
Need Help on htaccess Redirection
Need help to make htaccess. I use 2 domains: abc.domain1.com and domain2.com. the htaccess will be in domain2.com. i want to use it for vbulletin shorturl. The idea are; redirect domain2.com/[numbers]...
0 votes
1 answer
229 views
How to make 301 redirect from one website to another where the ending is different?
I have 2 websites: OLD one - https://www.old.example/en/ NEW one - https://new.example/en Lastly, Google Search Console reported around 80 improperly redirected links for OLD website, i.e.: https://...
0 votes
2 answers
373 views
.htaccess redirect not redirecting
I am trying to Redirect pages to new location on the same website using .htaccess the physical file name is displayitems.php but there is a rule in .htaccess RewriteRule ^buy-online-(.*) ./...
0 votes
3 answers
269 views
Apache website conversion from alias to virtualhost
I have to take over an internal Web server that has been configured by a colleague who is no longer there. Our developpers team asks me to convert applications URLs from an Alias to a Virtualhosts (...
1 vote
1 answer
470 views
.htaccess 301 redirect with exclusion does not work
I try to use a simple 301 redirect from domain1.com/folder/ to domain2.com/ but excluding domain1.com/folder/subfolder I use the following code in .htaccess: RedirectMatch 301 ^/folder/((?!subfolder).*...
2 votes
1 answer
797 views
htaccess Redirect Single Page to Different Domain without Parameters
I have a site with the following htaccess file: RewriteCond %{THE_REQUEST} \s/+(.+?)\index.html/?[\s?] [NC] RewriteRule ^ /%1 [R=302,NE,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
0 votes
0 answers
63 views
Apache mod_alias type functionality in IIS (10)
Wondering if it's possible to implement in IIS10 actions similar to those provided by mod_alias for Apache, specifically "Alias" to map a filename from an HTTP request to a common local path ...