The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Index page gets 404
#7
rfuller Wrote:Thanks for the help Chris.

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /Parts/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I suppose that with GetSimple installed in a subdirectory the RewriteRule will translate /Parts/ to /Parts/index.php?id=Parts.

An extra rule like
Code:
RewriteRule ^Parts/$ index.php
might help. Regarding flags ([QSA,L]), order (before or after) and if RewriteCond are needed, you must try yourself (as I do when adding any rules in my .htaccess) or read the documentation ;-)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Index page gets 404 - by rfuller - 2011-08-19, 02:13:38
Index page gets 404 - by polyfragmented - 2011-08-19, 02:19:57
Index page gets 404 - by Davidc437 - 2011-08-19, 04:02:28
Index page gets 404 - by rfuller - 2011-08-19, 04:36:02
Index page gets 404 - by ccagle8 - 2011-08-19, 11:41:06
Index page gets 404 - by rfuller - 2011-08-20, 02:03:40
Index page gets 404 - by mvlcek - 2011-08-20, 02:58:13
Index page gets 404 - by mvlcek - 2011-08-20, 02:59:53
Index page gets 404 - by DanKaplans - 2011-08-20, 09:15:25
Index page gets 404 - by Connie - 2011-08-20, 18:37:20
Index page gets 404 - by rfuller - 2011-08-23, 05:26:21



Users browsing this thread: 3 Guest(s)