So I just started using mod_rewrite, and it seems to be working great, this is what I setup:
Thus "hosting-unlimited.html" will lead to "?view=hosting&subView=unlimited"options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)-group(.*).html index.php?view=$1&group=$2
RewriteRule ^(.*)-(.*)-(.*).html index.php?view=$1&subView=$2&to=$3
RewriteRule ^(.*)-(.*).html index.php?view=$1&subView=$2
RewriteRule ^(.*).html index.php?view=$1
BUT.. now the 404 wont work
Example: http://amphosted.com/asdfasdfasdf Should be a 404.
Also.. Amp Hosted - Main is actually a path I need to be viewed, it shows a tutorial on using rvsitebuilder, but when I use mod_rewrite, it doesnt work, it shows the index.php page of the path before, obviously deformed in the fact that the script paths are incorrect.
Any ideas on how to fix this?
Checkout my new forum! http://adminreference.com/
Make a custom 404 page or whatever and then in the .htaccess add this
Code:ErrorDocument 404 /Your404Page.html
That is what I was going to suggest as well.
Well, I used that myself on my website... Although if I remember correctly the default 404 still worked for me.. I just made those custom pages just because I wanted.. not because it did not work... I don't know why that is happening... maybe some settings are not correct on your server..
Yeah, the default 404 should still work, as well as
Amp Hosted - Main Because its an actual index page, but it does't, but links that arent real look the same, like
http://amphosted.com/asdfjasdklfjkkjdsjjdjdjjjjdjdjd,
Edit:, I changed index.html to index.php and it works, but index.html should still work![]()
Checkout my new forum! http://adminreference.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks