cyfer65 Posted August 14, 2011 Share Posted August 14, 2011 Options +FollowSymLinksRewriteEngine OnRewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^(.*)$ /index.php?$1 That is what I have so far in my .htaccessso what ever URI that is placed after http://mysite.com/ will treated as a Server_Query string for my index.phpso if I put this in my browsers url http://mysite.com/AAA it would be the same as viewing http://mysite.com/?AAA or http://mysite.com/index.php?AAAso now there's one more thing I need to happen that I cant quite figure out!if there is a trailing slash "/" at the end of the URI like http://mysite.com/AAA/ I need it to show as http://mysite.com/AAA in the URL of the browser, but the server_query string that is passed to my index.php still needs to be AAA/ with that end slash..would this be possible at all..?whats the code for something like that..? Link to comment Share on other sites More sharing options...
cyfer65 Posted August 15, 2011 Author Share Posted August 15, 2011 Anybody gots any ideas..? Link to comment Share on other sites More sharing options...
Ingolme Posted August 15, 2011 Share Posted August 15, 2011 You need another rule that redirects: RewriteCond %{SCRIPT_FILENAME} !-dRewriteCond %{SCRIPT_FILENAME} !-fRewriteRule ^(.*)/$ /$1 [R=301] Link to comment Share on other sites More sharing options...
cyfer65 Posted August 15, 2011 Author Share Posted August 15, 2011 its not seeming to work for me??its redirecting to: http://mysite.com//index.php?AAA/I need it to show http://mysite.com/AAA in the URL but actually be viewing http://mysite.com/AAA/ with the end slash, is that possible..?So if I visit http://mysite.com/AAA/ I need the last slash removed from the URL, but it still needs to be viewing http://mysite.com/AAA/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.