can't get my head around this,
how do i go about getting my pages to take the php off the end
ie
www.????.com/index.php into www.???.com/home/
etc
can't get my head around this,
how do i go about getting my pages to take the php off the end
ie
www.????.com/index.php into www.???.com/home/
etc
Try this:
RewriteRule ^([a-z-]+)/$ index.php [L]
This will take any alpha string and call the index.php page
Imagn Design
Los Angeles Web Design Company
Alternatively, make that:
And you should get something that'll make any string become _that string_.php. So /home would become /home.php, etc.Code:RewriteRule ^([a-z-]+)/$ \1.php [L]
Much better usage![]()
Imagn Design
Los Angeles Web Design Company
back to this, sorry.
still can't get it to click
it have this as my .htaccessand my link looks likeCode:Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^index/$ index.php [L]
what am i doing wrong?HTML Code:<a href="/index" title="home" id="nav_home">HOME</a>
Try adding this before your RewriteRule, without altering your links:
You may need to fiddle with the RewriteRule a bit, also.Code:RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f
Also make sure you include the trailing / on the rewrite rule. Probably adding a ? before the $ will do the trick (makes the trailing / optional).
is this what you ment shadow/ljm?Code:Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^index/?$ index.php/ [L]
Yes, but without the / on the end of index.php:
Code:RewriteRule ^index/?$ index.php [L]
did that but still not working
linky