var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Hi, I have mod-rewrite installed and working on my Linux box.
I have an existing file located at www.domain.com/page1.php, I would like for its URL to be shown as www.domain.com/page1/ using mod_rewrite.
I have tried a few things such as:
Which only brings up a /page1/ cannot be found message.
RewriteRule page1.php /page1/
Use the following piece of code. That makes the url www.domain.com/page1/ valid.
RewriteRule ^page1/$ /page1.php
██ SparkSupport.Com - The Premier Tech Company
██ Cloud Solutions|Email Infra setup|VOIP|Video Streaming|Software Development
██ Email: [email protected] █ Phone : 1- 408-600-1449 | Skype : shijils
Thanks for that - it worked
Do you have anything else I could add so that the file can ONLY be obtained at the new URL or it shows a 404 error page? (assuming I have a 404 page at 404.php)?