7 Years
Discussion Span
Last Post by OmniX

Thanks but I have already gone through the apache manuals but it was very overwhelming at first and still could not reference what I required. I was hoping for a simple example inparticular the modrewrite for the folder but even something similar so I can gather a better understanding of the modrewrite function and then utilize it to my own requirements.

Edited by OmniX: n/a


My htaccess file was spewing out errors when I used the code.
Any ideas? possible php.ini declerations? Thanks.

Options +FollowSymlinks
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}\.php -f 
RewriteRule ^(.*)$ $1.php

Yes it is I forgot to turn it on my test server :D Ha Ha

The closest I have come across from your examples was:

Example #5:
The following will rewrite the URL to http://yourdomain.com/directory/newpage.html when visitors browse to http://yourdomain.com/anypage.html
RewriteEngine on
RewriteRule ^([a-z]+).html$ /directory/newpage.html [R,NC,L]

I am still not understanding the logic between conditional statements and output. ^$ start and end the string, [a-z] alpha characters, + multiple characters, .html the extension, then what is directory/newpage.html signify?

im looking something close to that but not a specific page just general 'hidden' folder for every page.

Off to reread the apache module :(

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.