Questions 1 and 1 mod_rewrite

I'm currently trying to connect my 1and1 host to the .htaccess file with mod_rewrite enabled, it works on my local Wamp, but it is not on the server,

Any help would be greatly appreciated!

I tried to delete everything except the mod_rewrite block, and the problem still persists ...

I asked for 1 and 1 for support, they closed my ticket without answering ... o_O,

Please, help!

.htaccess file:

# # Dream Forgery Settings: # AddType x-mapp-php5 .php RewriteEngine on RewriteBase / # Rewrite current-style URLs of the form 'strap.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /strap.php?q=$1 [L,QSA] 

Edit:

I don't have access to apache logs, as this is shared hosting, but the expected functionality is to redirect URLs, for example:

http://example.com/arg1/arg2/arg3

to

http://example.com/strap.php?q=arg1/arg2/arg3

(currently it gives 404 errors, only 404 pages from 1 and 1 appear)

0
source share
3 answers

Found the answer here:

Adding the following fixed mod-rewrite:

 Options -MultiViews 

http://www.techpopuli.net/news/04/002289.html

+8
source

Delete everything except important bits ...

 AddType x-mapp-php5 .php RewriteEngine on RewriteBase / # Rewrite current-style URLs of the form 'strap.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /strap.php?q=$1 [L,QSA] 

... and see what happens. The rest of the file is not needed - it [hopefully] isolates the problem. Both 1 and 1 support .htaccess .

0
source

A similar problem arose on mutual web hosting from 1and1.

Symptoms

  • frontend homepage ok
  • another page → err500
  • admin page is ok
  • web hosting 1and1, apache error_log unavailable

Joomla 3.9 comes with .htaccess (in the root directory), which messed it up at line 69:

 RewriteBase / 

Commenting out this line does the trick.

0
source

All Articles