Hello.
I have a problem with CodeIgniter .htaccess file and hope that somebody can help me!
I don't know regular expressions or how to use the .htaccess, I'm very new with this things!
My Problem is:
I have this structure of files (multi application):
- application
- admin
- site
- system
- index.php
- admin.php
And this .h...
I have some redirects in place from our previous site that used CakePHP. The new site has plain PHP pages. When trying to redirect the following in an .htaccess file I am having problems:
Redirect 301 /old-page-here http://samesitename.com/somedirectory/newfilename.php
The /old-page-here had the extension .ctp. When I run this in my b...
I need to protect a site that has a ton of static .html files. The standard .htaccess scheme doesn't meet the requirements.
Is there a way to specify an .htaccess style of password protection with a custom handler? That is I need to write the code to determine if the user is allowed or not, but I don't want to modify a million .html fil...
I need to redirect from a main domain like mydomain.com or www.mydomain.com to sub.mydomain.com - and this needs to work for all requests, so mydomain.com/whatever goes to sub.mydomain.com/whatever.
I've tried this, which only works for non-www at the main domain:
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://su...
I'm having problems implementing friendly SEO urls on my local (Mac OS X Snow Leopard) development server.
*Note: site.com is just an example
(1) Currently my site's root is set up with a virtual host pointing to a sub-directory of my Sites folder.
(2) Pages are currently being accessed in the following format: http://site.com/index.p...
Hello,
I have a development box which contains my site in:
http://localhost/dev/
My production environment is just:
http://mydomain.com/
I have all my PHP scripts adjusting to different paths automatically, but everytime I upload changes to my .htaccess file, I need to manually change any mentions of my http_root directory "/dev/"...
So I have a webpage that queries some data based on this parameter search.php?state=AL.
What I'm trying to do is write a rule in my .htaccess file that will:
translate website.com/state/AL into search.php?state=AL
If a user specifically request search.php?state=AL then translate that into /state/AL
I accomplished step 1 using thi...
Any request to www.example.com/* must be redirected to www.example.com/blog/*
If no www. prefix, add it.
Importantly, if there exists any directory matching the request URI, don't redirect.
Example:
(www.)example.com/<request> -> www.example.com/blog/<request> except <request> === <dirname>
Following the above 3 conditions, how do ...
I need to redirect...
/search?keywords=somesearchterm
to...
/search/somesearchterm
This seems incredibly basic but I've been pounding my head against it for an hour. Thanks for taking the time to look at this.
...
I am so about to kick mod_rewrite to the curb. Talk about "doesn't play well with others." Are there any witchdoctors about that can help me with this?
I have wildcard dns set up to identify users. I would like to go from:
http://username.domain.com/foo/bar
to:
https://www.domain.com/qux/waldo/username/foo/bar
Is this possible?
I'm...
So I've been trying to shorten my urls. The images I want to display are located at http://domain.com/images/pic.jpg
I would ideally like to be able to navigate to them by going to http://domain.com/pic.
I have got that bit working, with a few issues (commented on below). But now I can't navigate to http://domain.com/index.php because ...
How can i turn
http://domain.com/foo/bar.jpg
into
http://domain.com/bar
while keeping the rest of the website working?
...
I need to rewrite any url on my domain that starts with /club/anyPage to /page/club/anyPage.
For this, I believe I can use the following command:
RewriteRule ^club/([^/]*)$ /page/club/$1 [NC]
Also, if the physical page does not exist I want it conditionally rewritten like so:
/club/$1 to /page/club/club.php?title=$1
So in this ...
Hi. I found this modified .htaccess settings for extra security, but it doesn't seem to work. Here it is :
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Techniques in here adapted from all over,
# including Kroc Camen: camendesign.com/.htaccess
ServerSignature Off
# you probably want www.exampl...
hello ,
i made a script .. and i want to make it's all urls to be seo friendly ..
my current php urls is :
index.php?lang=ar&option=a&option_m=band variable option&option_m are optional
so i want convert this url to
/ar/a/b
or
/ar/a
or
/ar
and i want ask about if the page have form with GET Action ,, how to accept the query ...
I am creating a modular CMS using the codeigniter framework, the main asset directory is:
/public/assets/[admin|public]/[css|images|js]
my current htaccess routes everything except requests starting with 'public' to the index.php file.
The new module system allows each module to have its own assets which would be located at
applica...
Hi, i try to do 301 redirect from this address:
/web/8888/nsf/sbs.py?&_ID=9884&did=3025&PF=14&G=9884&SM=9884&lang=HE&_UserReference=956357C53FD2C8024C725EE5
to this address:
/?page=product&p_id=9884
the 9884 value is dynamic value the others always not
I try to use:
Redirect 301 "/web/8888/nsf/sbs.py?&_ID=9884&did=3025&PF=14&G=9884&S...
I'm working with htaccess in a php application. I want some behavior like this:
Send request to mydomain.com/login
Have htaccess intercept the request to login and send to index.php?ref=login
However I have that all set up and for some reason it automatically sends the mydomain.com/login request directly to login.php without going t...
I need to go from
/folder/12345/?foo=abc
to /folder/index.php?id=12345&foo=abc
head butting the wall it should be easy but I can't get it to work anybody know the answer of the top of there head
Paul
...
I am trying to install OpenX in a website that I use Kohana. It worked fine, until I found this error:
Fatal error: Uncaught
Kohana_Request_Exception [ 0 ]: Unable
to find a route to match the URI:
500.shtml ~ SYSPATH/classes/kohana/request.php [
635 ] thrown in
/home/xxxxxx/public_html/plugb/system/classes/kohana/request.p...