Fake URLs, RewriteEngine and Addon Domains

rossdev

Registered
Jan 31, 2003
1
0
151
I need some help here.

I am using this a .htaccess file to create "nice" URLs for my php variables.

.htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^.*$ - [L]
RewriteRule ^(.*)$ index.php [L]

When I access a page like this:
something.com/addon/var1/var2/
The variables pass correctly to the script.

BUT when I access a page like this:
addon.com/var1/var2/
The variables don’t pass over to the script.

Any ideas?

Brian.

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

mickeymouse

Well-Known Member
Sep 16, 2003
389
0
166
Dear rossdev,

The RewriteBase should be at the top of the RewriteRules and then put in the documentation (or document it in the .htaccess file) to modify the RewriteBase if they use a subdirectory.The default .htaccess seems to be wrong. Please refer

http://httpd.apache.org/docs/vhosts/mass.html for an efficient mod_rewrite module.

Regards,