.htaccess

.htaccess Error in Codeigniter

扶醉桌前 提交于 2020-01-05 02:29:32
问题 I am new to Codeigniter I have put an .htaccess in root folder of codeigniter 2.1.3. I have tried my .htaccess file on both xampp & wamp server but this is not removing my index.php. I have also set $config['index_page'] = 'index.php'; to $config['index_page'] = ''; and here is my .htaccess code <IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 !^(index\.php|js|images|system\/plugins|robots\.txt|css\/) RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> i dont know why this is not removing

.htaccess: Rewrite rule issue, how to redirect all to admin panel

ⅰ亾dé卋堺 提交于 2020-01-05 00:50:07
问题 I want to redirect my website to admin panel Like localhost/website/ => localhost/website/admin localhost/website/login => localhost/website/admin localhost/website/blog => localhost/website/admin Here is my created rule RewriteEngine on RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /website/admin/$1 [L] But this is not working 回答1: The following code will redirect everything to your admin page, keeping the attributes. This also applies to files who already exist ! RewriteEngine On

.htaccess: Rewrite rule issue, how to redirect all to admin panel

喜欢而已 提交于 2020-01-05 00:50:07
问题 I want to redirect my website to admin panel Like localhost/website/ => localhost/website/admin localhost/website/login => localhost/website/admin localhost/website/blog => localhost/website/admin Here is my created rule RewriteEngine on RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /website/admin/$1 [L] But this is not working 回答1: The following code will redirect everything to your admin page, keeping the attributes. This also applies to files who already exist ! RewriteEngine On

mod_rewrite redirect from .png to .php

吃可爱长大的小学妹 提交于 2020-01-04 19:42:54
问题 I have: http://www.site.tk/track/aaaa.png I want all .png files that are accessed from that folder to redirect to: http://www.site.tk/track/track.php So when I insert no matter what png file from that folder in another website using: <img src="http://www.site.tk/track/bbbb.png"> The user will see the content of the "track.php" I tryed: Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase track RewriteRule ^([A-z0-9]{6}).png /track.php I used "RewriteBase track" because the

mod_rewrite redirect from .png to .php

此生再无相见时 提交于 2020-01-04 19:42:07
问题 I have: http://www.site.tk/track/aaaa.png I want all .png files that are accessed from that folder to redirect to: http://www.site.tk/track/track.php So when I insert no matter what png file from that folder in another website using: <img src="http://www.site.tk/track/bbbb.png"> The user will see the content of the "track.php" I tryed: Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase track RewriteRule ^([A-z0-9]{6}).png /track.php I used "RewriteBase track" because the

Little mod_rewrite problem

这一生的挚爱 提交于 2020-01-04 18:57:32
问题 I have a classifieds website. Each classified is linked like this originally: mydomain.com/ad.php?ad_id=Bmw_M3_M_tech_113620829 What RewriteRule should I use to make this link look like: mydomain.com/Bmw_M3_M_tech_113620829 Also, what do I need to add to my .htaccess file? This is what I have so far: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / And I have just enabled mod_rewrite which was disabled at first on my Ubuntu server by using: a2enmod rewrite Anything else

Connect to php page using .htaccess with android application

南笙酒味 提交于 2020-01-04 15:13:15
问题 i've a locked php page (username and password) by .htaccess file, how can i do to connect to this php with my android application? My function to connect is : String conn(JSONObject json,String page){ String result = ""; String stringaFinale = ""; InputStream is = null; final int TIMEOUT_MILLISEC = 5000; // = 10 seconds HttpParams httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC); HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT

url redirecting using .htaccess

泄露秘密 提交于 2020-01-04 14:29:32
问题 I need your help to make some url redirection using .htaccess The case is that I have url like www.website.com/index.php?chID=1234 which opens particular tv channel on the website. The problem is that I want to make these urls like www.website.com/channel-name/1234 (where 1234 is that chID variable, to get record from the database, of course without it would be more nice). here is the working link - http://www.livepage.info/world-tv-channels.php?chID=1512 any suggestion will be greatly

Create dynamic subdirectories using htaccess and php

喜欢而已 提交于 2020-01-04 12:50:33
问题 Every single time a user registers on my site I would like them to have their own subdirectory with their registered "username". Every user subdirectory will have the same "index.php" file which will do something. For example: "/users/username1/" and "/users/username2/" If some one wants to access the subdirectory they would simple go to: "www.example.com/users/username1/" or "www.example.com/users/username2/" The easy and messy solution would be to simply create a subdirectory for every user

url rewriting with htaccess? [duplicate]

落爺英雄遲暮 提交于 2020-01-04 11:05:06
问题 This question already has an answer here : rewrite url with htaccess [closed] (1 answer) Closed 5 years ago . My problem: I want to write a .htaccess rule for. www.asdf.com/city.php?city=New-York to www.asdf.com/New-York but also with that I have other pages such as www.asdf.com/country.php?country=USA which I would like to appear as www.asdf.com/USA and www.asdf.com/state.php?country=LA which I would like to appear as www.asdf.com/LA Pretty confused how to do that. 回答1: If you wish to have