hello there.
just need one url on my site to check if its a mobile device and then rerite the url accordingly.
want to rewrite;
http://2amfilms.co.ukl/play-reel/miranda-bowen/playpeaches-and-cream
to
http://2amfilms.co.ukl/mobile/play-reel/miranda-bowen/playpeaches-and-cream
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$ [NC]
RewriteRule...
I'm currently working with:
RewriteEngine On
RewriteBase /somepath
RewriteRule ^/$ home [R]
I'd like to have requests of GET /somepath to redirect via 302 to /somepath/home. What am I missing here?
...
I have this url: http://localhost/zina/Artist%20One%20Demo?l=8&m=10&c
And it needs to become: http://localhost/?p=Artist%20One%20Demol=8&m=10&c&option=com_zina&Itemid=82
I am using this to rewrite the url:
RewriteRule ^zina/(.*)?(.*)$ /?p=$1&$2&option=com_zina&Itemid=82 [L,R]
However, I wind up with urls that ...
Hi
I have the following .htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
rewriterule .* LoadSite.php
What I am trying to do is that if the file doesn't exist then call LoadSite.php... this will then load any number of other php files via include (depending on the url)....
Dear members, can someone tell me why I can't view my index.php from the subdir /oorbellenboutique/ ???
It shows http:// www.oorbellenboutique.nl/startpagina/index.php but it must be the index.php from f:/inetpub/wwwroot/oorbellenboutique
The correct URL must be: http:// www.oorbellenboutique.nl/index.php
My DNS is:
A *.oorbellenbo...
Hey,
I have made a .htaccess that I've used on all hosts up until this one to rewrite index.html to the root domain.
This is the code
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.domain.co.uk/ $1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ ...
I have this url:
http://dev.example.com//zina/Artist%20One%20Demo?l=7&img=artist%20pic%20can%20can%20be%20named%20anything.jpg&it=full
And it's being rewritten to this:
http://dev.example.com/?p=Artist%20One%20Demo&option=com_zina&Itemid=82&l=7&img=artist%2520pic%2520can%2520can%2520be%2520named%2520anything.jpg&...
Hi all,
I am in a new project and I'm designing the URL structure,
the thing is I want URLs look like this:
/category-23/keyword/5/
Where the normal page is:
/search.php?q=keyword&cat=23&page=5
So my question is, cat and page fields, must be optional, I mean if I go to /keyword it should be
/search.php?q=keyword (page 1)
and if I go t...
How to redirect it as follows?:
mysite.com -> mysite.com/index.php
mysite.com/index.php -> mysite.com/index.php
mysite.com/index -> mysite.com/index.php
mysite.com/main.php -> mysite.com/index.php
mysite.com/main -> mysite.com/index.php
Same with .html extension (ie. mysite.com/index.html -> mysite.com/index.php)
...
The following RewriteRule redirects every request to bootstrap.php except the filextenstions between the parentheses
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|pdf|doc|txt|htm|html|xml|ttf|flv|swf|xml|ics|htc)$ bootstrap.php
Is it possible to exclude ALL files witouth declaring them like above?
So all requests should...
Any ideas how I can block Alexa Toolbar users? I don't want to appear in the rankings while we are in beta ...
I see you can block their search engine with
User-agent: ia_archiver
Disallow: /
but I can't find any documentation on how to pull your self from actually being ranked..
I read earlier someone tried to email them and they r...
I'm using ISAPI_Rewrite, Windows server 2008.
Currently I am rewriting URLs to httpd.ini like this:
RewriteRule /this-is-my-super-fancy-url/([^/]+)? /foobar/index.html?nid=10$1
Problem is, now we need to remove certain words from the URL, yet still have the request filled. For instance, in the example above if I needed to remove the...
Is it possible to make a short URL rule so that every word (except the root folders) after http://mydomain.com/ will get redirected to /index.php?permalink=$1 ?
examples:
http://mydomain.com/ - goto index.php (standard).
http://mydomain.com/word - goto index.php?permalink=word
My .htaccess looks like this right now:
Options +Follo...
I have html static files on my server. I want the access rules as -
If user visits http://example.com/test/ he should get the contents of the file http://example.com/test.html
If the user visits http://example.com/test (without the trailing slash), he gets redirected to http://example.com/test/ (which runs rule 1 and gets him the conte...
I'm sure that's been asked zillions times but i can't get it to work,
i'm trying to rewrite a url with querystring, my url is for example:
http://example.com/articles/index.php?keyword=book
and i want to be accessible from
http://example.com/articles/keyword/book/
I google it and i didn't have any luck,
am i on the right track? i ...
i have this problem with my url rewrite condition in .htaccess file, everything is working fine, but when i just type www.example.com on the browser to go to my homepage' it thinks its viewtopic.php file:
my viewtopic files are rewritten to be like this:
www.example.com/topic
this is my code:
RewriteEngine On
RewriteCond %{REQUEST_F...
I have a rewrite rule that looks like this:
RewriteEngine On
RewriteRule ^$ store [L]
That's the only thing in the .htaccess file.
It's supposed to allow someone to go to http://www.site.com/ and according to the server, they're accessing http://www.site.com/store .
But it's redirecting the user. In other words, you see "/store" in...
Ok, so this problem recently arose and I don't know why it is happening; it's actually two problems in one...
0. My .htaccess file, for reference.
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
ErrorDocument 400 /index.php?400
ErrorDocument 401 /index.php?401
ErrorDocument 403 /index.php?403
ErrorDocument 404 /index.p...
Assuming I have the following file structure:
www.example.com/index.php (home page)
www.example.com/about.php
www.example.com/services.php
www.example.com/contact.php
How can I use mod_rewrite in an .htaccess file so when the browser points to:
www.example.com/about.php
the actual URL displayed will be:
www.example.com/about/
However...
How to make this work?:
somesite.com/page/2 -> somescript.php?page=2
...