All Questions
16 questions
2
votes
1
answer
100
views
.htaccess - ADD www. & REMOVE .html
Hi! My english is not very good, sorry for any spelling mistakes.
Using .htaccess I want to add www. and remove/hide the .html.
It should look something like this:
BEFORE -- http://example.com/...
3
votes
1
answer
45
views
Is it possible to redirect specific pages of my website (using https) to http?
Aim
I would like to redirect specific pages of my website to http.
Background
I have the following .htacess
Options All -Indexes
RewriteEngine On
RewriteRule ^(.*)\.html $1\.php [L]
RedirectMatch ^/*$...
0
votes
1
answer
129
views
How to configure one URL Rewrite/proxy rules on IIS?
Architecture:
User --> ARR Server --> LB --> 2 Web Server serving 2 different sites
Web Server1 serving -> https://xxxx-green-xxxx-xxxx.net/xxx/xxx?xx=xxxx where green keyword comes in any place in ...
2
votes
2
answers
92
views
Redirect documentroot to another folder in conf apache or .htccess
Good Day
I want to rewrite a url when request a subdirectory
When the user request
172.0.0.1/url
i want to rewrite to make this url point to
172.0.0.1/url/url
or the documentroot is in /...
0
votes
1
answer
809
views
Particular URL redirect to http if request come from particular host
Web server is apache, ssl configured, listening on 443,
All http requests will be redirected to https using rewrite rule
Issues is all url's are serving through https, but we want to connect to the ...
0
votes
1
answer
423
views
Malformed URL Port. How to rewrite or redirect?
I have a malformed URL:
http://myserver.com:8080xyz/abc
As you can see the port is incorrectly concatenated with a string.
Would any webserver be able to receive this request?
Is it possible for ...
0
votes
0
answers
37
views
Would anything in this .htaccess file create any conflict, or should be listed in a different order, or not using the right flags?
I'm creating a new .htaccess file for my domain,
and I want to make sure that all parts of this code are valid, that the right flags are being used, that it would not create any conflicts, and whether ...
0
votes
1
answer
55
views
.htaccess to control HTTPS on certain pages
I am using htaccess to redirect certain pages to htaccess. The code am using is
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /core/marketing/editprofile
RewriteRule (.*) https://%{HTTP_HOST}%{...
1
vote
1
answer
2k
views
How to fake a url?
I have a url as http://mydomain.com/levels/home?mode=48bb6e862e54f2a795ffc4e541caed4d.
I need to make fake url of above url. When I type a url http://mydomain.com/medium in address bar of browser, ...
0
votes
1
answer
4k
views
URL rewriting using localhost is not working
I am testing a .htaccess configuration on my localhost.
The root of the website is http://localhost/test/
My .htaccess is :
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/...
0
votes
1
answer
731
views
Apache htaccess change 404 to 200?
I like to know if posible to change the 404 HTTP Status code into 200 for a specific file.
If that posible how can I do it ? Thanks ! :)
35
votes
2
answers
43k
views
RewriteRule Last [L] flag not working?
php_flag display_errors 1
php_value auto_prepend_file init.php
RewriteEngine on
RewriteRule ^$ /id/authenticate [R]
RewriteRule ^login_openid$ /id/login_openid.php [QSA,L]
RewriteRule ^authenticate$...
2
votes
1
answer
378
views
RewriteEngine producing recursion, altough NS (nosubreq) is specified - Why?
I have this rewriterule:
RewriteRule ^authenticate /id/authenticate.php [NS,QSA]
I am getting this error:
[Sat Jul 23 05:12:37 2011] [error] [client 62.178.15.161] Request
exceeded the limit ...
2
votes
1
answer
4k
views
How to make an Squid-Cache internal URL rewrite?
url_rewrite_program by squid-cache really redirects the URL. In other words, the end-user gets a response back that says "redirectted page from foo to bar", and then the user makes another request to ...
2
votes
3
answers
19k
views
RewriteRule not working
I am trying to add a rewrite rule in my httpd.conf file but it's not working.
Here's the relevant section:
RewriteRule ^/taxonomy/term/([0-9]+)$ http://www.example.com/taxonomy/term/$1 [R=301, L]
...
0
votes
1
answer
259
views
How to simplify WWW or No WWW in one elegant Apache Rewrite?
Dear folks,
The (www.)? part in the below code doesnt work properly I feel:
RewriteCond %{HTTP_HOST} ^(www\.)?mywebsite.com$
RewriteRule ^$ /de/home [L]
The above code now works together with this:
...