URL rewrite working, but not working?

4 years 6 months ago - 4 years 6 months ago #101181 by gabeguillen
gabeguillen created the topic: URL rewrite working, but not working?
We just installed a fresh copy of LimeSurvey (limesurvey200plus-build131022) on a LAMP setup and everything is working fine, but I cannot seem to get the URL rewrite to work correctly. It works, and it doesn't work which means:

If I go to the main site (lets just say survey.domain.tld ), there are links to surveys. If I check the link to a survey, it is linking to survey.domain.tld/index.php/476188/lang/en . However, if I take that link, remove the index.php and paste it back into the browser, survey.domain.tld/476188/lang/en works just fine.

Is there some setting somewhere that I am missing to turn this on? This server has .htaccess file lookup disabled for performance reasons, so the contents of the .htaccess file were merged into the VirtualHost block in the Apache configuration file. I have no reason to think that this is the issue, but here is the important snippet of the VirtualHost block:

<Directory /path1/path2/survey.domain.tld/>
Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

# General setting to properly handle LimeSurvey paths
AcceptPathInfo on

We would like all the visible URLs to be nice and clean to match our other systems. Any help is appreciated.
Last Edit: 4 years 6 months ago by gabeguillen.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!