Skip to main content

Posts

Showing posts with the label htaccess

Remove index.php in url (.htaccess)

php ျဖင့္ေရးထားတဲ့ application မွာ index.php ေဖ်ာက္ခ်င္ရင္ .htaccess ထဲမွာ ေအာက္ပါအတုိင္းေရးျပီး သံုးလုိက္ရင္ဆင္ေျပပါျပီ။ <IfModule mod_rewrite.c>     Options +FollowSymLinks -Indexes     RewriteEngine On     RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule> /etc/apache2/site-available ထဲက default မွ ာေအာက္က အတုိင္း လုိအပ္သလိုျဖည့္ေပးလုိက္ရင္ရပါျပီ။ <VirtualHost *:80> ServerName www.yts.me DocumentRoot /var/www/ <Directory /var/www> AllowOverride all </Directory> </VirtualHost> all ဆို စာသားက အေရးၾကီးဆံုးပါ။ A အၾကီးဆုိရင္ေတာင္အလုပ္မလုပ္ဘူး ။