0
votes
2answers
34 views

Mod Rewrite based on HTTP_HOST don't change browser address

I am not exactly clear on why this isn't working properly. I have sub.domain.com with its contents in /sub_folder, and sub.domain.com is listed in the ServerAlias directive for domain.com. The DNS ...
1
vote
2answers
192 views

Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID

So I'm working on a Java web application, for which I recently implemented an authentication module that relies on the JSESSIONID cookie to identify users. I was testing on a local tomcat from eclipse ...
1
vote
2answers
519 views

Apache Redirect To Another Server with subdomain

I am currently running CentOS which hosts my web and gitlab server and a windows machine that is hosting a subsonic server. Currently, my ip points to the CentOS but does not redirect correctly. I am ...
0
votes
2answers
227 views

How do I configure my httpd rewrite/proxy to direct app1.example.com:443 to localhost:8080 and app2.example.com:443 to localhost:8081?

I have two Tomcat instances, one running on port 8080 and the other running on 8081. The both have deployed a web app called app.war but they are separated not only by different ports, but different ...
0
votes
1answer
42 views

add word in url using .httaccess

Right now i am accessing abc.xml from test directory as below http://localhost/test/abc.xml I want to redirect the above url as below http://localhost/test/test.php?abc.xml ...
0
votes
1answer
67 views

Why does this RewriteRule in httpd not work?

I tried to set this RewriteCond in httpd 2.4.4: ... RewriteCond expr "%{QUERY_STRING} =~ /welcome/" RewriteRule ^(.*)$ %1\.html So, if I visit https://localhost/?welcome , for example, I should see ...
1
vote
2answers
68 views

mod_rewrite to redirect to different virtualhost

The hostname where I want to redirect to looks like: <VirtualHost *:80> ServerName my.dav.hostname.com ErrorLog /var/log/open-xchange/dav-err.log TransferLog ...
0
votes
1answer
108 views

Apache internal redirect limit reached

I have following problem: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel ...
0
votes
1answer
1k views

Issues with htaccess URL Rewrite (specific for CPanel type hosting)

I have an application set up on Apache 2.2 CentOS (with cPanel). I am facing issues with htaccess. I have confirmed that mod_rewrite is working. My .htaccess file is laid out like : RewriteEngine on ...
1
vote
1answer
348 views

Add a trailing slash to url before invoking Silex

As most frameworks out there, Silex depends on rewrite rules to handle pretty urls. The default .htaccess recommended for use with this framework is RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
55 views

Apache - How to Ignore Paths and Paramaters in 301 Redirect

Say I want all requests to example.com to redirect to abc.com. How can I make everything redirect to the root of abc.com and not include any paths or parameters included in example.com? For example ...
0
votes
2answers
232 views

httpd Redirect / Rewrite .com to .org

I am trying to redirect a www.example.com to www.example.org. I cannot figure out what I'm doing wrong. I have ensured that mod_rewrite is enabled in httpd.conf with: LoadModule rewrite_module ...
0
votes
2answers
458 views

After enabling ReWriteLog in .htacess, I failed to open my web site.

.htaccess worked well at first, then I added two lines to my .htacess to enable RewriteLog. The result is that I failed to open my web site. The two lines I added to my .htaccess are as follows: ...
2
votes
0answers
1k views

Apache + Codeigniter + New Server + Unexpected Errors

Alright here is the situation: I use to have my codeigniter site at bluehost were I did not have root access, I have since moved that site to rackspace. I have not changed any of the PHP code yet ...
1
vote
1answer
353 views

Mod_rewrite is ignoring the extension of a file

This is my entire mod_rewrite condition: <IfModule mod_rewrite.c> <Directory /var/www/> Options FollowSymLinks -Multiviews AllowOverride None Order allow,deny allow ...
4
votes
1answer
2k views

how to rewrite '%25' in url

My website software replaces space characters with '+' characters in the URL, A proper link would look like 'http://www.schirmacher.de/display/INFO/How+to+reattach+a+disk+to+XenServer' for example. ...
0
votes
3answers
7k views

Why is https not working?

I am trying to redirect just the root of my site to https. Although the rewrite happens, https does not yield anything. The browser says. connecting to thinkingmonkey.me... and stagnates. ...
0
votes
1answer
1k views

Why does this pattern not match QUERY_STRING in RewriteCond while it matches in preg_match?

Here is what I have in my .htaccess file. RewriteEngine on RewriteCond %{QUERY_STRING} ^(run=[a-z0-9A-z]{13})$ RewriteRule %{QUERY_STRING} \? [L] All I am doing is Rewriting the QUERY_STRING for ...
0
votes
2answers
90 views

Unable to get mod_rewrite to stop processing

This is linked to Rewriting subdomain.domain.com when other 'subdomains' exist I need mod_rewrite to 'stop' processing, but it seems to continue on. On my registrar, I've set A records as: ...
0
votes
1answer
173 views

Rewriting subdomain.domain.com when other 'subdomains' exist

My httpd.conf looks like this: NameVirtualHost 12.34.56.78:80 <VirtualHost 12.34.56.78:80> DocumentRoot /var/www/html/site ServerName www.example.com <IfModule mod_rewrite.c> ...
1
vote
1answer
2k views

Apache - httpd.conf redirect with X-Forward-For - Not working?

I'm having an a-hole of a problem redirecting traffic. Basically, I'm building a new web server and it's on another version of my domain, so I want to redirect traffic not from this IP. Problem is ...
1
vote
4answers
351 views

Redirecting www.example.com/folder to folder.example.com

I had mantis setup as www.example.com/mantis and now I've setup my httpd.conf to have it accessible at: mantis.example.com . Since I have many links referencing the earlier links, I need to redirect ...
0
votes
1answer
589 views

RewriteRules in .htaccess in subdirectory disabling/breaking RewriteRules in .htaccess in parent directory

This is a shared hosting account with HostGator. I've two .htaccess files. One is in the document root: `~/public_html/.htaccess' # this is ~/public_html/.htaccess ## Redirect to https:// ## ...
0
votes
2answers
195 views

Hide folder using Apache HTTPD

I'm using Apache HTTPD server and I have a 3 static folders on my root, namely "css", "js" and "images". How do I rewrite it so that it can't be seen from the outside world? I know they're static ...
1
vote
2answers
280 views

mod_rewrite rule

I need a mod_rewrite rule that sends all requests to index.php unless the request is for anything in the /media/ folder. I have a similar rule for lighttpd but I don't know enough about ...
0
votes
2answers
172 views

MOD_REWRITE not creating correct path

SO I am trying to setup a RewriteRule on my server for caching static objects. the files are in this naming scheme /docroot/css/stylesheet.min.css and I have them printed in the code like ...
1
vote
1answer
569 views

mod_rewrite always gives 10 internal redirects and fails

I have a simple .htaccess which fails to redirect correctly on some reason: RewriteEngine on RewriteBase / RewriteRule ^.*$ /test.php [L] There is a log entry: [Tue Nov 16 17:04:12 2010] [error] ...
0
votes
3answers
654 views

Hide redirects using mod_rewrite

I'm using mod_rewrite to rewrite GET requests to a particular script. My Goal is to redirect the request for: http://localhost/Work/dbUI/pageElements/Dialog/Contact.php?id=138750 to ...
1
vote
2answers
1k views

mod_rewrite settings causes server to throw HTTP 500 errors instead of 404

I have a server with VBulletin forum (working under Apache 2.2, CentOS). The default settings for it in .htaccess are as follows: RewriteEngine on RewriteCond %{HTTP_HOST} ^gsmforum\.ru RewriteRule ...
0
votes
1answer
81 views

.htaccess rewrite rules [duplicate]

Possible Duplicate: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? The below code adds www. to any url that does not start with it: RewriteCond %{HTTPS} ...
4
votes
5answers
2k views

Apache mod_rewrite remove question mark (?) and query-string substitution

I registered a RewriteRule with mod_rewrite, but the substituted URL are wrong. The rule are: RewriteRule ^/img/z(0|1)u(.+)\.(gif|jpg|jpeg|png)$ /image-servlet/img/?z=$1&url=$2 ...
2
votes
1answer
383 views

Proper steps for updating Apache conf on production server?

I usually: Update my local near-replica ( ServerName directive and Logs will obviously be different ) of the production conf file and make my changes for things like rewrite rules. ...
0
votes
1answer
2k views

Setting up Wildcard subdomain (with reverse proxy) on apache 2.2.3

Hey All, What I am trying to achieve is the following: I want to have numerous subdomains such as abc.domain.com redirect to a url such as www.domain.com/something?subdomain=abc Since I am ...