How do I enable gzip on Dreamhost?
I would like to compress all css and js on my Dreamhost site, I have found suggestions on the web but none of them work. Does anyone have a working example of gzip running on a Dreamhost site? ...
I would like to compress all css and js on my Dreamhost site, I have found suggestions on the web but none of them work. Does anyone have a working example of gzip running on a Dreamhost site? ...
We are using a mod rewritten URL within our PHP site, this is the rewrite rule we are using: RewriteRule ^category/([^.]+)/([0-9]+)/([^.]+)/([0-9]+) categories.php?c_id=$2&filters=$3&_p=$4&area=category&areaname=$1 However, a user of a different system is switching to our setup and wants to 301 all their old pages to their new equival...
If i use: RewriteEngine On RewriteRule ^.* controller.php It would send all requests to controller.php But if controller.php included a css file (/assets/css/main.css) then it wouldn't work, as when the browser called it, it would just redirect to controller.php Is there a way i can fix this? ...
I need to offer a directory listing of the root directory of my site, so I created an .htaccess file containing options +indexes It works for subdirectories, but for the main directory I get the Test Page for the Apache HTTP Server on Red Hat Enterprise Linux page. I have two sites that are identical except for the PHP version insta...
Hi, I have an htaccess file which begins with the regular stuff: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d then has a few rewrites eg: RewriteRule ^protect/?$ /Legal/Your-Financial-Protection.aspx [NC, L, R=301] then ends with a rewritemap: RewriteMap map txt:rewritemap...
How do I write a rewrite-rule that redirects visitors to the domain www.mydomain.com/ to www.mydomain.com/index.html? ...
My .htaccess file looks like this: <Files misc> ForceType application/x-httpd-php </Files> <Files computers> ForceType application/x-httpd-php </Files> <Files products> ForceType application/x-httpd-php </Files> ...and several more. However, given that the directive is called File**s** (i.e. plural), it seems like there should be...
I have designed a website, and within it I have a range of PHP scripts which interact with my system. For example, if a user uploads an image, this is processed by the script image.php and if a user logs in this is processed by the script login.php All these scripts are stored in the folder called: scripts how do I ensure someone...
I would like to know how to allow periods at the end on my url's. Currently if I had the url: http://www.mydomain.com/Page/I.D.K. The page grabbing the information would return Title: I.D.K (Without the ending period) This also happens with other punctuation and it is effecting my pages displaying information wrongly. Thanks for look...
Hey all, I'm running a MediaWiki install, for which I recently switched from an addon domain (cpanel) to a parked domain, because that was cheaper and with .htaccess I could still redirect everything. This works for several domains, including this one, but now another error occurs. When parking the domain I redirect it to /public_html/...
Hello What i want to do is the following, 1) Prevent normal non secure pages being shown as secure 2) Prevent secure pages being shown as normal non secure pages 3) Show secure pages as is, as specified by their links Also note there are, ie ./contact/subscribe which is secure but not ./contact/welcome. I have tried several conditions...
Hey guys! I have a page with a RewriteRule that makes my code: /?p=page will be rewritten like: abc.com/page, but I really want to have more sites under that, and at the moment I have this code in my .htaccess file. Right now I have the code: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILE...
I need to install Expression Engine on a subdomain for a client, and he is already running a php-based program on the main domain. Whoever set up the database program on the main domain apparently needs all .php extensions removed, but this makes it so that I can't even run the install for Expression Engine because of the rewrites in th...
Let I have two domains named www.abc.example and www.xyz.example hosted in different servers. I have a .htaccess file in the root directory of www.abc.example (i.e. www.abc.example/.htaccess) What will be the .htaccess script if I want to load the contents of www.xyz.example when I request from www.abc.example. As for example: If I br...
I want users who type http://www.example.com/word-of-the-day to be taken to http://www.example.com/index.php?page=word-of-the-day But I want http://www.example.com/word-of-the-day to be shown in the URL for the user. What should I do in my .htaccess? I tried but the regular expression and the syntax of RewriteRule is way too c...
Is it possible to set a default folder to access instead of a file like "index.html". What I'd like to to is make it so that when a person visits my site they get redirected to a folder within the root of the domain. I am using a blogging engine and I need it to show up as the homepage but I don't want to install it in the root because...
Hey everyone, I am new to URL rewriting and I have an .htaccess file that looks like this: RewriteEngine On RewriteRule /*\.(css|js|gif|png|jpe?g)$ - [NC,L] RewriteRule "^(.*)$" "www/index.php?_url=$1" [QSA,L] Does this code just rewrite the code internally, or is it supposed to change to URL in the address bar? As of now it ...
I am trying to let the "trac" directory and all of it's subdirectories be accessible through the url http://www.domain.com/trac/ I am working with the codeginiter framework and my directory structure looks like .htaccess index.php system trac I can access the abov url fine, but the problem is the scripts and other files contained in ...
I've set up a brochure ware kind of site - with links to different sections in the page. http://www.leoniepalmer.com/ When clicking a menu item in the top right corner, everything works great! Now I have a second page at http://www.leoniepalmer.com/our-gourmet-tours/ And I want the menu to then go back home to the relevant anchor, ...
I have an .htaccess file set up like so: RewriteEngine on RewriteRule ^home/ /member.php [L] So when users type http://domainname.com/home/ it goes to the member page, but when they type http://domainname.com/home I get a 404 error. What am I doing wrong? ...