I have a simple .htaccess file to rewrite www.domain.com/foobar.php to www.domain.com/foobar
RewriteEngine On
RewriteRule foobar foobar.php [L]
It is giving me a 404 even though I ran phpinfo(); (which shows the mod_rewrite module), and checked httpd.conf (which uses mod_rewrite several times by default).
Any suggestions? Thanks.
With a server running Apache and PHP via mod_fcgid, I'd like to log all requests handled by PHP into a separate file so that I can get a better idea of which requests are going through PHP versus being handled directly through the filesystem.
This is a site with some pretty complex rewrite rules in .htaccess (Wordpress with W3 Total Cache), which translates cached PHP requests into static file re
I didn't change httpd.conf after installation of apache2, so it looks like .htaccess-files are enabled by default, because if I generate a .htaccess-file with garbage in it, I find an "invalid command" for the .htaccess-file in the error.log.
Will turning off override by htaccess in apache have a performance increase? I have had a look online and there is very little articles/reports on this.
If this is the case how do I go about turning this off?
Our OpenCart is running on Lighttpd and we use mod_rewrite for SEO.
Whenever we have our rewrite rules on, GET requests such as http://www.site.com/dev/?gclid=XXX do not work.
Here are my current rewrite rules for OpenCart:
server.modules += ( "mod_rewrite" )
url.rewrite = (
"^(.)--v[^/]--(.*)$" => "$1$2"
)
url.rewrite-once = ( "^/dev/$" => "/dev/index.php?route=common/home")
url.re
I'm trying to do something like VirtualHosts using mod_rewrite on a GoDaddy hosted site. I have a single hosting account and two domains, a.com and b.com. I want requests for b.com/document.html to be served from ~/html/b_site/document.html (where ~/html/ is the DocumentRoot, serving as root for a.com).
I am new to using regular expressions for rewriting URL's in htaccess
I need to redirect mysite.com/123 to mysite.com/, IF cookie named 'ref' is set.
my current htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_COOKIE} ref=true [NC]
RewriteRule ^/([0-9]+)/$ http://www.mysite.com
</IfModule>
The goal is that when someone enters site with: mysit
I'm running Nginx on an Apache server. Everything seems smooth except rewrite rules for IE, my site is displaying perfectly on Firefox, Chrome, Safari, Opera except Internet Explorer where images comes with red X and links doesn't seem to work.
I need help to rewrite rules for IE, here is my .htaccess file. I heard Nginx don't support .htaccess, if not then where should add any rules for IE?
I've just setup a new server and I'm having an issue with an account using mod_rewrite.