.htaccess troubles

Questions about how to install and problems installing - please read the documentation first!
Post Reply
svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

.htaccess troubles

Post by svasti » Fri Apr 17, 2015 10:08 pm

Hello the experts,

.htaccess is enigmatic stuff...
I just managed to move my cmsimple pages to svasti.de, but now I need a redirection from frank.ziesing.de/cmsimple/ to svasti.de

I tried endlessly, but am getting always server errors.
The funny thing is, that redirection from other domains work
(http://test.marlou.de/cmsimple redirects correctly with
RewriteEngine on
RewriteRule ^(.*)$ http://svasti.de/$1 [R=302,L])

However the same rule put on frankziesing.de/cmsimple/ results in
Forbidden
You don't have permission to access /cmsimple/ on this server.
Apache Server at frankziesing.de Port 80
anybody any idea?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: .htaccess troubles

Post by cmb » Fri Apr 17, 2015 10:18 pm

svasti wrote:.htaccess is enigmatic stuff...
ACK
svasti wrote:However the same rule put on frankziesing.de/cmsimple/ results in
Forbidden
You don't have permission to access /cmsimple/ on this server.
Apache Server at frankziesing.de Port 80
anybody any idea?
Let's assume the incoming request URL is frankziesing.de/cmsimple/?Welcome. The rewrite URL will then forward to svasti,de/cmsimple/?Welcome. However, on svasti.de cmsimple/ is the "system" folder which is access protected. Maybe the following works:

Code: Select all

RewriteRule ^/cmsimple(.*)$ http://svasti.de/$1 [R=302,L])
After that works, I suggest you change to [R=301,L].
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: .htaccess troubles

Post by svasti » Fri Apr 17, 2015 10:44 pm

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at frankziesing.de Port 80
grrrr
especially as the whole stuff works from text.marlou.de/cmsimple/

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: .htaccess troubles

Post by svasti » Sat Apr 18, 2015 3:39 pm

I contacted the provider. He answered that I should have requested to enable mod_rewrite before trying htaccess.
He enabled it, and now the rewriting works as expected.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: .htaccess troubles

Post by cmb » Sat Apr 18, 2015 4:30 pm

svasti wrote:He answered that I should have requested to enable mod_rewrite before trying htaccess.
:idea:
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply