Help - Search - Members - Calendar
Full Version: mod_rewrite and CPanel
Hostony Board > General Support > General Support
bidule
Hi,

I'm trying to write a few mod_rewrite, but cannot get them to work. I'm not an expert in these, but it seems that plain things do not work as expected.
Is there anything to know about CPanel configuration, httpd.conf, already setup rewrite rules, etc... ?

Basically, I'm trying, at first, to shift the root of the web to a subdirectory, regardless of the remote_host - ip address/~username or true url, to have it working while DNS are migrating.

Then, I'll have to tackle the search friendly urls problem with mambo, wich is another one smile.gif

Any help would be really appreciated.

Thanks.
ser_pros
You will find more helpful information about mod_rewrite by the following link:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
bidule
Thank you for this quick reply, but still doesn't help.

I'm trying the basic redirect, with or without RewriteBase:

CODE
RewriteEngine on
RewriteBase    /~altaicon/public_html/
RewriteRule   ^/$  /dyn/  [R]


with no effect whatsoever.
What am I doing wrong ?
Alec
Try the following:

CODE
RewriteEngine on
RewriteBase /~altaicon/
RewriteRule   ^/$  /dyn/  [R]


~altaicon is applicablt for http onily but public_html isn't included in your http link
bidule
Thanks, I tried this, but with no result at all.
Can you check that there isn't any directive in httpd.conf for my environment ?
ser_pros
There isn't any directive in httpd.conf for your environment.
Please tell me your domain name.
I'll check it.
bidule
This is altaiconsulting.com - the DNS are not migrated yet.
Thank you.
Alexandre
Your domain is still pointed to the old namservers:
http://www.networksolutions.com/en_US/whoi...questid=1146961
bidule
I know that (see my previous message, and the first in the topic). The domain is supposed to be changed today.

But I wonder how it can prevent .htaccess to work when the lines suggested by Alec below.

Thanks for your help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here