REWRITE UPDATED

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post 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.
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post 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
bertalizer
Posts: 47
Joined: Sat 21. Feb 2004, 14:24
Location: Belgium

Post 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.
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post 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
Post Reply