rvp032582
Posts: 47
|
| Posted: 09/05/2008, 7:00 PM |
|
for testing it got it to work on this codecharge page: http://www.urologyscga.com/aboutus/26/
but not on this one: http://pass77.dizinc.com/~arleneho/aboutus/11/
i am using the exact same code in the .htaccess file which is:
RewriteEngine On
RewriteRule ^aboutus/(.*)/ /aboutus.php?ContentID=$1
has anyone done anything with mod_rewrite before for SEF Urls? and if so, any thoughts on why it would work on the live site and the one that we're using the preview feature for (that isn't pointed to us yet)?
|
 |
 |
datadoit
|
| Posted: 09/06/2008, 5:39 AM |
|
Check the obvious to make sure the rewrite module is loaded in Apache.
Also check your AllowOverride value in httpd.conf.
|
|
|
 |
rvp032582
Posts: 47
|
| Posted: 09/06/2008, 12:37 PM |
|
i already did. i asked our hosting provider - they said it was. still doesn't work. i asked our hosting provider if it's b/c the site doesn't yet resolve to the server. they said yes. which may or may not be true. whatever. i just found out we're not even hosting the site...so i guess it doesn't matter in this case anymore
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 09/06/2008, 5:58 PM |
|
It is in the tilde '~" most likely.
But it doesn't matter anymore.
W.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
feha
Posts: 712
|
| Posted: 09/07/2008, 9:51 AM |
|
Here is my version ...
DirectoryIndex index.php index.html
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.php$ index.php?page=$1 [L,QSA]
ErrorDocument 404 http://www.vision.to/404.php
This does:
It takes the alias name via page= parameter ...
and i decided to use .php extension in order to keep PR ...
you can decide ^(.*)\.html$ or whatever you want ...
I think your code is missing some $ ...
I did not try a "directory" type as some servers creates problems ...
_________________
Regards
feha
www.vision.to
feedpixel.com |
 |
 |