The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly.

learn more… | top users | synonyms

0
votes
1answer
46 views

.htaccess Apache Mode Rewrite not Working

New to Ubuntu and trying to set-up PHP environment. Now most of the things are set but .htaccess file not working at all for my CMS. I have two sites /var/www/one/ and /var/www/two/ now when I hit ...
0
votes
1answer
55 views

mod_rewrite is enabled, but not working

I'm trying to get a PHP routing library set up. They give this example for a .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . ...
0
votes
1answer
67 views

Enabling .htaccess file to rewrite path (not working)

All the tutorials tell me to edit the: /etc/apache2/sites-available/default but this file doesn't exist for me. Within this file I would have to edit the: <Directory /var/www/> Options Indexes ...
0
votes
0answers
516 views

mod_rewrite use in Apache 2.4

Okay, so there are plenty of threads on how to use mod_rewrite, but I find it seems to work a bit differently in Apache 2.4. I tried this: <Directory /var/www/vhosts/example.com> <IfModule ...
0
votes
1answer
210 views

How To Write To SD card

I heard of people saying they could if they did it as a root user. How do I do that. When I tried to write to sd card . . . I got a read only error. Permissions says Owner: me Access: Create and ...
0
votes
0answers
36 views

How to resolve jira URL redirect

I'm having some trouble trying to figure out how to create a rewrite url, or .htaccess in apache2 I've created a redirect rule at my DNS zone: jira.xyz.co REDIRECT http://xx.xxx.xx.xx:8080/jira ...
0
votes
1answer
260 views

Apache2 server failed to start after enabling `mod_rewrite`, returns “Operation Not Permitted” errors

I am trying to install cakephp ( a php framework) which requires to enable mod_rewrite. For this I followed Enable mod_rewrite answer. But after restarting my server It says: nitish@nitish-G31T-M7:~$ ...
0
votes
1answer
131 views

Should I put .htaccess rules in 000-default or httpd.conf?

I'm trying to move all .htaccess rules to httpd.conf. Problem with that is httpd.conf is blank (apparently this is by default-I'm using 12.04). I checked apache2.conf and found that httpd.conf was ...
0
votes
1answer
1k views

Problem with apache 2.4.6 on ubuntu 13.10 no rewrite for wordpress links

My rewrite was working well until i updated my apache and than went dead . My 000-default.conf <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that ...
1
vote
1answer
168 views

Is the rewrite module activated for nginx in the Wordpress juju

Is the rewrite module activated for nginx in the Wordpress juju? When I change the permalink to anything other than default I get bad gateway. rewrite is mandatory for buddypress to function ...
0
votes
1answer
127 views

what is the nginx equivalent command apache has for a2enmod?

I'm following this guide: How to Setup OwnCloud Server 5 with SSL Connection Problem though is that the guide is for apache but I am using nginx for my server. As such I am trying to "reverse ...
0
votes
0answers
317 views

Url rewrite does not work ubuntu server

Currently I am working with a php script but it still contains an unfriendly link (cms.php?Cms=login). I want to turn it into a friendly link /cms/login I have an .htaccess file is created ...
0
votes
1answer
1k views

How can I enable mod_rewrite logs?

I'm having trouble with my .htaccess redirects, and I want to enable logs on the the mod_rewrite module so I can figure out what's going on. The trouble is, httpd.conf doesn't seem to exist anymore in ...