![]() |
Need help with .htaccess
I have a .htaccess in the root of my public_html site, but I need some assistance with it. What it's set to do is use this as the "fake link": 'http://website.com/home', but have it really show this: 'http://website.com/request.php?req=home'.
The URL shows the first link and uses the second basically. Here is the .htaccess file: Code:
RewriteEngine OnOne other problem is I have a forum running on a subdomain (http://forum.website.com) and it does the same thing because of the .htaccess file in the parent folder, so I need the file t ignore folder 'forum'. I found this on Google and tried it but it didn't seem to work: Code:
=========[ start of .htaccess snippet]==========Code:
RewriteEngine On |
*UPDATE*
I got the folder working and the subdomain to redirect, but I need the DefaultIndex to work only when its not that folder or the forum. Any help? Edit: I believe I have narrowed it down to what I need. I need a condition for DirectoryIndex as follows: If the website is any of these ignore the default: http://website.co.cc/Dubz http://website.co.cc/forum http://forum.website.co.cc/ (basically same as above, but the subdomain version) otherwise, do this as the default: http://website.co.cc/request.php?req=home Edit: Changed DirectoryIndex to this: DirectoryIndex index.php http://website.co.cc/request.php?req=home This way it will use the forum's first, then the main folders (basically) But he second one still won't work for some reason. I don't know if its the webhost blocking it or what but I need it fixed asap. If I can't get it I'll most likely make an index.html with a meta refresh redirect. |
Problem solved as follows:
DirectoryIndex request.php index.php Modded the request.php to work (Just added a @ to not return an error when getting a value from the $_GET) |
thanks bro :) just what i needed to make my app seo friendly
|
| All times are GMT +1. The time now is 06:14 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.