PDA

View Full Version : .htaccess rewrite issue


GrzegorzS
04-02-2014, 05:41 AM
Hello

I`m trying to standarize urls for my forum to open the same url whatever you write http://vw-forum.pl or http://www.vw-forum.pl

I have following entries and they are working fine but when I`m trying to logon or register it`s not logging in it`s just doing nothing

In error_log I found

[Wed Apr 02 08:02:47 2014] [error] [client 89.231.101.172] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/vw-forum.pl/httpdocs/vw-forum.pl


RewriteEngine on
Options FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.vw-forum\.pl$ [NC]
RewriteRule ^(.*)$ http://www.vw-forum.pl/$1 [QSA,L,R=301]


Pls help me to resolve this problem

ikopylov
04-02-2014, 08:36 AM
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^vw-forum\.pl
RewriteRule (.*)$ http://www.vw-forum.pl/$1 [R=301,L]

GrzegorzS
04-02-2014, 06:19 PM
Hello

Thanks a lot for your feedback - indeed that help and now the message about RewriteRule directive is forbidden not appearing anymore.

However issue that registration and login form not working still persist :(
I`m clicking login button and it`s like doing nothing and moving to the main page

you can take a look here http://www.vw-forum.pl/vw_login.php
just click login button and you will see that behaviour

Any idea what`s wrong here ?

Thanks
Greg

ikopylov
04-02-2014, 07:28 PM
Answer me please
- Why it is necessary to rename or change the standard login page ?
- This is a spam protection ?

I do not understand for what purpose and how you did it

GrzegorzS
04-03-2014, 06:12 AM
Hello

To understand you correctly are you asking about url for loggin or the form view ?
If form view it was changed to have a bit diffrent view then standard one

Thanks
Greg

Seven Skins
04-03-2014, 11:59 AM
^^ I think ikopylov wanted to know why the login.php has been renamed to vw-login.php and for what purpose?

Simon Lloyd
04-04-2014, 06:03 PM
Checking the source code shows that it's still just looking for login.php