Page 2 of 2

Posted: Fri 23. Apr 2004, 17:23
by Jan212
normally that wouldn't work cause options etc. aren't usually allowed in .htaccess ...
you have to get access to your virtual host entry or the httpd.conf and set it up there ... or call the admin to enable executing options etc. in .htaccess, but i don't know if that's possible at the moment.

Posted: Fri 23. Apr 2004, 23:30
by cmslover
Hi Jan212,

I just installed the new version RC3 ( 04-23/04 ). The core included your .htaccess re-write hack. The out put url now is not mypage.html put index.php?mypage, what am I missing? Please advise!

Many thanks.

Code: Select all

php_flag magic_quotes_gpc Off
php_flag register_globals Off




# Rewrite functionality for phpwcms
# optimized by Jan212
# 18-04-2004

DirectoryIndex index.html index.php 
RewriteEngine On


# IF PHPWCMS IS INSTALLED IN YOUR WEB ROOT

# This will rewrite 0.0.0.0.0.0.shtml => index.php?id=0.0.0.0.0.0
#RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.shtml$ index.php?id=$1.$2.$3.$4.$5.$6

# This will rewrite mypage.shtml => index.php?mypage
#RewriteRule ^(.+)\.shtml$ index.php?$1


# If phpwcms is installed in a subdirectory,
# sample: "phpwcms" then use this (remove #)
# ===============================================
RewriteBase /home

# This will rewrite 0.0.0.0.0.0.shtml => index.php?id=0.0.0.0.0.0
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.shtml$ /home/index.php?id=$1.$2.$3.$4.$5.$6

# This will rewrite index-mypage.shtml => index.php?mypage 
RewriteRule ^(.+)\.shtml$ /home/index.php?$1 



#THIS IS FOR REWRITE LOGGING 
#RewriteLog "/absolute/path/to/the/rewrite.log" 
# 0 = Logging disabled, 9 = highest level of logging, only for debugging 
#RewriteLogLevel 3
System FreeBSD (i386) 4.9-RELEASE
php 4.3
URL http://realestatebuyingselling.com/home

Posted: Sat 24. Apr 2004, 00:16
by bertalizer
cmslover wrote:Hi Jan212,

I just installed the new version RC3 ( 04-23/04 ). The core included your .htaccess re-write hack. The out put url now is not mypage.html put index.php?mypage, what am I missing? Please advise!
Have you set
$phpwcms["rewrite_url"] = 1;
in conf.inc.php?

B.

Posted: Sat 24. Apr 2004, 00:19
by cmslover
bertalizer wrote:
cmslover wrote:Hi Jan212,

I just installed the new version RC3 ( 04-23/04 ). The core included your .htaccess re-write hack. The out put url now is not mypage.html put index.php?mypage, what am I missing? Please advise!
Have you set
$phpwcms["rewrite_url"] = 1;
in conf.inc.php?

B.
:oops: I thought I did. Let me check again