Mod Rewrite Hide Folder?

I assume what you want is for the browser to request /home. Php but the server to actually use the file located at /pages/home. Php, right?

If so, this should work: Make sure the apache mod_rewrite module is installed. Then, use something like this in your apache config, virtual host config, or (less desirable) . Htaccess file: RewriteEngine On RewriteRule ^/(.*)$ /pages/$1 The rules use regular expressions, so you may want to look at a reference on that topic if you're unsure.

Read the manual for more info on other directives (RewriteCond can be very useful) or rule options.

If your example actually reflects the files you need, then in your . Htaccess file: #Options +FollowSymLinks RewriteEngine On RewriteRule ^/pages/(.+)\. Php $1\.

Php NC, L Also, if the directory has read permission, it cannot be, in reality "hidden". I assume you mean that it no longer appears in the url.

1 This is what I had at first, too. But this means the user would see /pages/home. Php in the address bar, while the server would serve up /home.php.

After rethinking, I think the OP wants the opposite... – grossvogel Apr 11 '10 at 19:35 @grossvogel - you're right - I re-read his question more closely. – TMG Apr 11 '10 at 21:18.

Make sure the apache mod_rewrite module is installed. Then, use something like this in your apache config, virtual host config, or (less desirable) . The rules use regular expressions, so you may want to look at a reference on that topic if you're unsure.

Read the manual for more info on other directives (RewriteCond can be very useful) or rule options.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions