.htaccess - mod_rewrite issue or maybe my server is the issue? -


i'm having bit of fit here. i'm wading vast pool of .htaccess in order rewrite urls seo friendly.

i have been researching day. take code snippets various tutorials , posts, yet no results , of time, no errors.

i have cpanel dedicated server running apache 2.0. called host, lunarpages, , verified mod_rewrite installed , is, , apparently working fine.

where i'd start changing name of index.php /home/ in http://www,website.com/home/ making trailing slash optional home being case insensitive.

literally, try doing nothing, it's though request being ignored completely.

i'm writing .htaccess file in notepad on pc , uploading filezilla transfer type set ascii.

where i'd start changing name of index.php /home/ in http://www,website.com/home/ making trailing slash optional home being case insensitive.

try:

rewriterule ^/?home/?$ /index.php [l,nc] 

note if have relative links (like scripts or css) in index.php , go http://www,website.com/home/, relative links have /home base (instead of /). , you'll either need make links absolute or add uri base page header:

<base href="/"> 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -