Reply To: FlippyListRanker list and category pages not found (404)

Home Forums Bugs and Fixes FlippyListRanker list and category pages not found (404) Reply To: FlippyListRanker list and category pages not found (404)

#1650

tomstraub
Participant

Dear Support,

Yes, the mod_rewrite module in Apache is enabled. The “.htaccess” lines you provided, unfortunately, did nothing, probably because the DirectoryIndex is “index.php” not “index.html”.

After a lot of searching the PHP code and trial and error, the following added to the “.htaccess” file got it working:

# Add web page handlers
AcceptPathInfo On

# For security reasons, Option all cannot be overridden.
Options +ExecCGI +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch +MultiViews -Indexes

# Set the default index page
DirectoryIndex index.php

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^category-([0-9]+)-(.*)$ category.php?cat=$1
RewriteRule ^list-([0-9]+)-(.*)$ list.php?id=$1
RewriteRule ^profile-([0-9]+)-(.*)$ profile.php?id=$1
RewriteRule ^my_lists-([0-9]+)$ my_lists.php?id=$1
RewriteRule ^edit_list-([0-9]+)$ edit_list.php?id=$1
RewriteRule ^edit_items-([0-9]+)-([0-9]+)$ edit_list.php?uniq=$1&id=$2
RewriteRule ^voted_lists-([0-9]+)$ voted_lists.php?id=$1
  • This reply was modified 3 weeks, 5 days ago by  tomstraub.