tproductions484
New Member
- Messages
- 17
- Reaction score
- 0
- Points
- 0
Hello.
I currently have a dynamic URL
(http://mysite.x10.mx/mybb/member.php?action=profile&uid=1)
And I want to switch to static URL's
(http://mysite.x10.mx/mybb/user-1.html)
Yet, all of the php I have trie in my .htaccess in the root of my site (/public_html/.htaccess "is the location of my file") And my forum install (MyBB) is located in: (public_html/mybb/). So, can someone please tell me, to change to static url's, what code do I have to put into my .htaccess for my url's to work as static url's? I get a 404 error when I try one of these:
Please help.
I currently have a dynamic URL
(http://mysite.x10.mx/mybb/member.php?action=profile&uid=1)
And I want to switch to static URL's
(http://mysite.x10.mx/mybb/user-1.html)
Yet, all of the php I have trie in my .htaccess in the root of my site (/public_html/.htaccess "is the location of my file") And my forum install (MyBB) is located in: (public_html/mybb/). So, can someone please tell me, to change to static url's, what code do I have to put into my .htaccess for my url's to work as static url's? I get a 404 error when I try one of these:
PHP:
Options +Multiviews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
PHP:
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} !mod= [NC]
RewriteRule ^([^/]+)$ /index.php?mod=$1 [L]
Please help.