Linked Questions

0
votes
0answers
18 views

How to use mod_rewrite to redirect page based on browser

mod_rewrite is apparently the way to go with that. This question explains the general syntax, but not the way to do it. I found this page on redirecting and remapping with apache, you can aprently ...
0
votes
1answer
86 views

Why rewrite rule for IP address shows “Not secure” whereas domain name works well in Apache2?

I created ssl certificate for myDomain.com Hence I see following 3 files under /etc/apache2/sites-enabled in Ubuntu example.com-le-ssl.conf example.com.conf example.conf My example.com.conf looks ...
0
votes
1answer
46 views

Rewrite domain to subfolder using HTTPS [duplicate]

How correctly to rewrite domain to a subfolder with HTTPS ? This will just redirect all request to subfolder1 RewriteCond %{HTTP_HOST} ^(www.)?example1.com$ RewriteRule !^subfolder1/ subfolder1%{...
1
vote
1answer
29 views

Apache ssl.conf RewriteRule [duplicate]

The stuff after the #### are just to tell you what I am doing and it's not actually part of my ssl.conf file Trying to modify an ssl.conf configuration to do the following... RewriteCond %{...
0
votes
0answers
16 views

Wordpress post URL hide and encode via htaccess [duplicate]

Say, I have a wordpress site. If anyone visit my post like https://example.com/my-post-name then he will be redirected to https://example.com/hjbfdbferyuyebe4terfndfnej4jdsd==. How can it be ...
2
votes
0answers
48 views

RewriteRules for .htaccess [duplicate]

This question has an accepted answer at Stackoverflow I have a PHP file named as otp.php. When URL in the URL bar is http://localhost/college/otp/MTA=/teacher It should be treated as http://...
-1
votes
1answer
20 views

How to configure Apache to rewrite following condition? [duplicate]

I'd like to enable Apache mod_rewrite to work as follow: www.mysite.example/g/abcde "redirect" to www.mysite.example/mypage.php?code=abcde&mode=g and www.mysite.example/v/abcde "redirect" ...
0
votes
1answer
161 views

Apache Reverse Proxy redirect with assets folder in another path [duplicate]

I'm using Apache2 to perform Reverse Proxy for my tomcat. my domain name is https://dev.domain.com to be redirected to http://127.0.0.1:8080/MyApp proxy is ok but tomcat is having an asset folder ...
0
votes
2answers
75 views

Is it possible to do a wildcard HTTP->HTTPS redirect for all vhosts?

On our dev server we have multiple sites for multiple developers running via vhosts in Apache 2.4.6. We are on CentOS 7. We want to redirect all http://www.site.ext.dev-username.commondomain.ext to ...
0
votes
0answers
16 views

Folder 301 redirection [duplicate]

i can't redirect correctly an url path in htaccess Problem: https://www.example.com/folder1/folder2/folder3/ needs to rewrite in: https://www.example.com/folder1/FOLDER/folder3/ I tried many ways ...
0
votes
0answers
25 views

PT rule in .htaccess in subdirectory that will be processed in .htaccess for parent directory [duplicate]

I have a PHP project that exposes its API under /api/public/(xyz). The http root directory has .htaccess file that rewrites those requests to be processed by index.php. For reason not relevant here, ...
2
votes
1answer
299 views

redirect link with question mark in htaccess [duplicate]

I need to redirect: example.com/wiki/?t=1234 to example.com/vb/showthread.php?t=1234 The numbers "1234" is hundreds of pages with different numbers I try in .htaccess but doesn't work: ...
0
votes
0answers
15 views

Conflicts between htaccess rules [duplicate]

I'm trying to use the url_rewrite system for php but, as i'm a rookie i have a conflict problem (i suppose) between rules. I have these three htaccess rules. The first two are working, the last one ...
3
votes
1answer
357 views

RewriteCond: check is %{HTTP_REFERER} include or equals %{REQUEST_URI}

Is there a way to check using RewriteCond whether the Referer includes the requested URI or... RewriteCond %{HTTP_REFERER} == 'host.com/' + %{REQUEST_URI} ... ? I need to catch whether the surfer ...
0
votes
0answers
29 views

Apache URL redirect using RewriteMap [duplicate]

I am struggling with the last part, writing proper RewriteRule (maybe I also need RewriteCond?). I have this mapping.txt: apple 30/products/apple.png xerox 38/products/xerox-300.png dell 3021/...

15 30 50 per page