Topic on Project:Support desk

Short URL not working

2
2600:1003:B026:7701:4587:529B:1E8:BA1 (talkcontribs)

Good day,


Summary: I've followed all the steps outlined in the manual, but the Short URL isn't working - I receive a 403 error. Without short URLs, the site works fine.

Setup: Apache web server, website root = /var/www/html/w

Details:

In the LocalSettings.php file, I've added the below lines under the $wgSitename.

$wgScriptPath = "/w";

$wgScriptExtension = ".php";

$wgArticlePath = "/wiki/$1";

$wgUsePathInfo = false;


In the httpd.conf file, I've added the below lines.

RewriteEngine on

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]


For the /var/www and /var/www/html directories, I've ensured the below options are in place:

<Directory /var/www...>

Options Indexes FollowSymLinks

AllowOverride none

Require all granted

</Directory>


So, after all that I get a 403 error. When I check the server logs, it tells me there's a AH01630: client denied by server configuration: /var/www/html/wiki.

What's strange is, I don't have a wiki folder anywhere.


Any assistance would be much appreciated, thanks!

2600:1003:B026:7701:4587:529B:1E8:BA1 (talkcontribs)

Also, I've restarted Apache a few times just to be sure it wasn't a caching issue or something, but it didn't make a difference.

Reply to "Short URL not working"