Subfolder non-www problem

New to mod_rewrite? This is a good place to start.

Subfolder non-www problem

Postby ||NeX|| » Thu Jul 23, 2009 5:58 am

Hi,

I searched now for 2h for the problem, but didn't find anything similar.

I want 2 things:

1. Rewrite http://root.com/subfolder/ to http://www.root.com/subfolder/
2. Rewrite http://www.root.com/subfolder/index.php to http://www.root.com/subfolder/

The same happens already in the root, but I can't make it work in the subfolder and the non-www rewriting doesn't work in the subfolder because it has its own htaccess file.

Thank you in forward
||NeX||
 
Posts: 25
Joined: Thu Jun 01, 2006 6:19 am

Postby richardk » Thu Jul 23, 2009 9:26 am

Try adding
Code: Select all
RewriteOptions Inherit

to /subfolder/.htaccess.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 28 guests

cron