Page is a not externally linkable
light_bulb - 3:03 am on Jan 23, 2013 (gmt 0)
This probably goes against best practice, however, my website has a number of pages that need to have hard coded specific rewrites, but I'm having trouble getting them to work in the manner I would prefer.
WAMP server.
EG:
.htaccess looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^user/account.php index.php?page=custom&file=paypal/user_menu_pack.php [L]
RewriteRule ^user/watchlist.php index.php?page=custom&file=watchlist/watchlist.php [L]
RewriteRule ^user/promocode.php index.php?page=custom&file=promo_codes/user_promo_code.php [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
If a person visits domain.com/user/account.php it correctly rewrites to index.php?page=custom&file=paypal/user_menu_pack.php
However, I want to achieve that without needing a file type specified; I want the redirect to apply if a person visits domain.com/user/account (without the trailing .php)
Can anyone kindly help me?