Jump to content

.htaccess + mod_rewrite Help!


cyfer65

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...