Tagged Questions
0
votes
1answer
47 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
165 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
94 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
24 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
91 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
147 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
892 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
207 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
785 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
3k 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
825 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
76 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
163 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
1k 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
265 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
504 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
151 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
262 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
159 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
425 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
397 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
991 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
76 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
318 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
1k 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 ...