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
12 views

403 Forbidden on virtual host with mod_rewrite

I managed to install virtual host on LAMP server and created the config file /etc/apache2/sites-available/site.com.conf <Directory /home/ihab/Workspace/Webdev/site.com/public_html> ...
0
votes
0answers
36 views

OwnCloud getting 404 after install on fresh Ubuntu 16.04

I am trying to install OwnCloud on a Ubuntu 16.04 server with apache2 and php7.0-fpm. My PHP is setup fine, I have phpMyAdmin running good. When I try to install OwnCloud, I am downloading the zip, ...
0
votes
0answers
14 views

mod_rewrite Internal Server Error

Running 16.04 Ubuntu. My .htaccess is producing a Internal Server Error Here is the mode rewrite: RewriteEngine On RewriteRule ^([^/]*)$ /index.php?url=$1 [L] Any help is appreciated. I'm trying ...
0
votes
0answers
27 views

Why am I getting a 500 Internal Server Error message?

My .htaccess does not work in xubuntu with Apache 2 I have enabled rewrite mode using a2enmod rewrite by referring Example. My /etc/apache2/sites-enabled/000-default.conf file <Directory /home/...
0
votes
1answer
137 views

Apache subdomains wildcard redirection

Is there a way that i can redirect wildcard vhost on apache sub-domains to another domain? i.e, https://abc.domain1.com --> https://abc.domain2.com https://xyz.domain1.com --> https://xyz....
-1
votes
1answer
386 views

Redirect from https domain to another https domain

How can i redirect apache from one "https://domain1.com" to "https://www.domain2.com" I tried it as following: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ...
0
votes
1answer
673 views

mod_rewrite 15.04 ubuntu server

I tried to enable mod_rewrite on my new server. I installed LAMP, an configured rest by webmin, but cant run mod_rewrite. I get the Not Found-url page. When i do any changes in configs like 000default....
1
vote
1answer
472 views

.htaccess file not running and internal server error

I am using ubuntu 14.04 and have LAMP environment. I have one of the project in dir /var/www/html/project1 . It can't access the .htaccess file for rewriting url rules. For that i have to change in /...
0
votes
2answers
1k views

Remove '.php' from url - Nothing works

Ubuntu 14.04LTS 32bit LAMP I know it's an old question but.. I need it to remove .php anywhere it finds it from the visible url. It needs to work with /showthread.php?id=XX ---> /showthread?id=XX ...
0
votes
1answer
114 views

Apache 2.4: pcfg_openfile unable to check htaccess / php warning include() failed opening for inclusion

Situation I've installed Ubuntu 14.04 on my desktop, and now need to get Apache 2.4 working with my local websites. With 12.04 this all worked. Now I get two errors, and googling for these errors I ...
0
votes
1answer
36 views

Problem using mod_rewrite to support canconical URL

I'm having some difficulty with mod_rewrite and suspect I'm making a basic error. My goal is to set-up a canonical form on my server so that all access (by domain or IP address) goes without ...
1
vote
1answer
287 views

Why do I get 404 on LAMP Permalinks (Using wordpress)

I have been working on a website on an ubuntu server (amazone) and I get 404s entering pages. I'll give all the information I can regarding the problem. On WordPress Refresh page: I ...
1
vote
1answer
489 views

How to add and enable rewrite module in manually installed apache httpd web server?

I installed apache httpd server by compiling source on Kubuntu 14.10. I followed wget http://www.us.apache.org/dist//httpd/httpd-2.2.29.tar.gz tar -xzf httpd-2.2.29.tar.gz cd httpd-2.2.29 ./configure -...
3
votes
2answers
16k views

HTTP to HTTPS rewrite rule not working

ubuntu 14.04 Apache/2.4.7 I am posting here conf file for my virtual host and default ssl host. not able to figure what am I doing wrong. http://<website_url> shows the index of the ...
4
votes
5answers
18k views

how to config htaccess file after enabling mod_rewrite module?

I already install apache2 then i enable the mod_rewrite module like this: sudo a2enmod rewrite after enabling i am confused about these lines, i can't understand what to do with them, as far as i ...
0
votes
1answer
6k views

How to configure mod_rewrite correctly while using CakePHP?

This at first might look like a duplicate question but I have done 10 hours of research on Internet and tried almost everything I've found but no luck with mod rewrite. Most of the post/tutorials on ...
0
votes
1answer
805 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 ...
3
votes
2answers
24k 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 . ...
2
votes
2answers
36k 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 ...
3
votes
3answers
25k 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
2k 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
1answer
2k 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
304 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 ...
1
vote
1answer
4k 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
587 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 properly....
0
votes
1answer
668 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
1answer
784 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 ...
1
vote
1answer
5k 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 ...