Not sure, you may try something like :
Code:Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-zA-Z_-]+).html index.php?_id=$1 [L]![]()
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I have an URL like this:
http://www.mydomain.com/index.php?_id=just-a-test
I want to rewrite this into the following:
http://www.mydomain.com/just-a-test.html
My .htaccess file looks like this:
The problem is:Code:RewriteEngine On RewriteBase / RewriteRule ^([^-]+)-(.+)\.html$ index.php?_id=$1&_news=$2 [L] RewriteRule ^(.+)\.html$ index.php?_id=$1 [L]
http://www.mydomain.com/index.php?_id=just-a-test
becomes:
http://www.mydomain.com/das.html ("a-test" is missing...)
All hyphens and parameters get lost ... what am I doing wrong?![]()
I'm looking forward to your replies!
Thank You!
P.S. My Apache version is: Apache/2.0.50 (Linux/SUSE).
Easily manage all of your link exchanges: Link Exchange Script
Not sure, you may try something like :
Code:Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-zA-Z_-]+).html index.php?_id=$1 [L]![]()
LocaFY.in - The smartest way to find local information in India
http://www.tutorialplace.com/search....l%20Categories has a good tutorial lol. sorry for repost but it is a helpful list![]()
Tyler Cruz schooled me in BW, so he won this until May 23rd, 2011 TylerCruz
Bookmarks