I have been trying to do simple maping with RewriteMap directive in my htaccess, but for some reason i am getting error 500 everytime. my syntax is ..
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteMap name2id txt:nklist.txt
RewriteRule ^/name/(.*) /name_list_view.php?kid=${name2id:$1|NOTFOUND}
in nklist.txt :
1 Da...
Welcome,
How can i disallow in robots.txt indexing of pages
http://mysite.net/something,category1.php
http://mysite.net/something,category2.php
(...)
http://mysite.net/something,category152.php
I have try
Disallow: /something,*.php
But it say, i can't use wildcard (*) here.
...
hi all this is my first question, i know i have read heaps of other post on ReWrites but i still can not get this correct.
simple URL i have now:
/articlesView.php?id=6&title=Fisher-&-Paykel-Australian-Age-Championships!-2006
i would like to change it to:
/articles/6/Fisher-&-Paykel-Australian-Age-Championships!-2006.php
any help woul...
Hello,
I'm trying to whitelabel the Zend framework, so I've created folder in application called Site.
This url: http://local.branch.test.com/site-css/1/layout.css returns a 400 Bad Request.
With the following rule:
RewriteRule ^site-css/([0-9]+)/(.*)$ ../application/site/$1/design/css/$2 [L]
Full .htaccess
RewriteEngine on
Re...
I have web page running on the Apache. Web page is using Apache basic authentication. So when user tries to access certain page - must enter user/pass before to get authorised. I would like to display notification (except a list of IP addresses) screen with accept button just before authentication.
Other comments on above:
I can't sto...
EDIT: Having issues with the code below
Okay, I'm getting a page that says "The page isn't redirecting properly". This is if someone tries to access /files/protected/file.jpg. I'm trying to redirect it to /myfiles/file.jpg, but instead I get that error...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /myfiles/
RewriteR...
I've never worked with an htaccess file and so I'm not sure if I have anything correct in it and I'm not sure if I'm supposed to have one.
I've looked up some documentation and there hasn't been much help. Is it essential to running an apache server to include an htaccess file?
...
I have some javascript that is generated by PHP. Currently I am including the javeascript in the html using
<script type="text/javascript" src="js/script.php">
But I want to use
<script type="text/javascript" src="js/script.js">
Now script.js does not exist, but I want it to redirect to script.php without the user knowing.
Can thi...
I need help, again.
I am trying to do the redirect, but it is not working.
I want to redirect:
http://www.example.com/page/168?s
To:
http://www.example.com/page/168
Using
RewriteCond %{QUERY_STRING} ^q=s$
RewriteRule ^(.*)$ http://www.example.com/$1? [R=301,L]
Thank you
...
I've got a really quirky issue going on with ExpressionEngine. I've got a live test site here.
Essentially, if you attempt to comment on the index's 'Question of the Day,' you get a proper redirect, but the comment never gets to the database.
If I remove my .htaccess and set the site's index page in my control panel to index.php, then ...
i have a htaccess file which redirectes all the requests to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ./index.php
My question is i would like to make a redirect to folder which doesn't exist and it should not affect the present htaccess redirects to index.php. since it is linked ...
I want to redirect m.example.com to example.com/index.php?type=mobile while inheriting the rules I've already written for example.com...
So, say, I have N rules already defined looking something like:
^view/([A-z]+) index.php?view=$1
^delete/([A-z]+) index.php?delete=$1
^page/view/([A-z]+)/([0-9]+) index.php?view=$1&page=$2
^page/del...
Ok, here is my issue and the reason I want to split up the .htaccess file into two parts:
I have a local developing machine with windows as well as a test and a productive system running on the same machine on openSUSE. That causes me some trouble:
I use a htaccess auth mechanism which need an absolute AuthUserFile path
I use a rewrit...
I am developing a webshop and I'm making it SEO friendly, so I use urlRewrite to have a "nice" and "clean" URL.
I am having products in categories, and I'm having filters for products search.
I would like to have something like:
www.website.com/motor-oils/filters/volume-1L/weight-4Kg/price-500/
i would use the following rule:
Rewri...
I've recently installed Wordpress and can't seem to get the website to display friendly URLs no matter what settings I use inside the Dashboard or in an .htaccess file. I've tried numerous versions of Wordpress and still can't achieve what I need, despite succeeding on hosts other than Concentric/XO, any idea why?
...
My web is dir structured is as follows :
moving/
includes/
controllers/
includes/
etc...
I have the following questions about /moving and all of its sub-diretories:
How can i request any php script without the .php extension?
How can i request ...dir/index.php?q=about as just ...di...
I can generally figure this kind of thing out on my own, but I'm totally lost on how to write a rewrite rule in .htaccess
my current url looks like:
index.php?p=page&v=2&i=2&pg=01
I'm trying to make the url look like this:
/vol2/iss2/pg01/
Any help greatly appreciated! Thanks!
...
What is wrong with this rewrite rule?
RewriteRule ^api/(.+)$ api/index.php?url=$1 [L]
I simply want "index.php?url=" to be added after api/ and before the rest of the get parameters.
api/image/upload&arg1=1&text=lorem+ipsum
to
api/index.php?url=image/upload&arg1=1&text=lorem+ipsum
What is wrong with (.+) to get everything after ...
So for security reasons, I want to disallow http://www.domain.com/directory/ but allow that physical directory only through http://subdomain.domain.com/directory/
The simple way would be to just move the directory, but I can't do it because it breaks the application, so how would I do this with .htaccess?
I've temporarily blocked it u...
Are the following opening/closing tags necessary for .htaccess mod_rewrite's? I've had .htaccess working without those, but just checking up on htaccess tutorials, many include this tag.
<IfModule mod_rewrite.c> ... </IfModule>
...