php - mod_rewrite works on localhost but not on server -


As the title says, when I upload to my server (Ubuntu LTS), my rewrite rule does not work . . Htaccess-file is in play, but nothing is there.

The mod_rewrite has been loaded, I have verified that in many ways I tried to write nonsense text in the .htaccess file and got 500 internal errors, so the file is in the loop. In "virtualhost" configuration, "Permission is aurray all".

The rewrite in the .htaccess file contains a series of rules, such as:

  revised rule ^ webshop $ index.php? Page = Webshop [QSA] Reverw rule ^ webshop / ([0- 9] +) $ index.php? Page = webshop and catID = $ 1 [QSA]  

I have virtualhost, a public server and a test server on the server. The public server works well, all the rewriterules are similar to the above and works. It is a virtualhost for testing that does not want to play. One server, one IP, two FQDN

Thoughts?

Edit - Here is the virtualhost configuration:

  & lt; VirtualHost *: 80 & gt; ServerAdmin beta@example.com Server Name beta.example.com DocumentRoot / var / www / beta / www-root & lt; Directory / & gt; Follow Option Time Link Allow All & lt; / Directory & gt; & Lt; Directory / var / www / beta / www- root & gt; AddDefaultCharset utf-8 option Follow-up symlinks multivise allow override Allow all orders, allow them (skipped two IPs) & lt; / Directory & gt; & Lt; Directory / var / www / temp> Allow all & lt; / Directory & gt; ScriptAlias ​​/ cgi-bin / usr / lib / cgi-bin / & lt; Directory "/ usr / lib / cgi-bin" & gt; Allow Override No Option + ExecCGI -MultiViews + SymLinksIfOwnerMatch Order Allow, Allow From All & lt; / Directory & gt; ErrorLog /var/log/apache2/error.beta.log # Possible values ​​include: debug, notification, notice, warning, error, concurrent, # warning, rise LogLevel warning customLog /var/log/apache2/access.log combined Surname / doctor / "/ usr / share / doc /" directory "/ usr / share / doc /" & gt; Option Index Multiviz follow-of-SIM links of override Do not decline any order, deny all 127.0.0.0/255.0.0.0 :: 1/128 & lt; / Directory & gt; & Lt; / VirtualHost & gt;  

The problem is that there is a folder with a name (part of one) Regex I have a file called "webshop.php", and for some reason the regex ^ webshop $ fails (the server prefers actual folders / files instead of local relay).


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -