Directory-level configuration file used by Apache web servers.
0
votes
0answers
5 views
SSL on only one page of Wordpress site
I have setup SSL on a page of my wordpress site i.e. /checkout which works fine.
when you visit the home page or any other page for that matter the url in the browser reads as ...
-1
votes
0answers
4 views
mod_rewrite rewritebase current directory
I have folder /thesite/ with all php files. I have /.htaccess in the root directory. Inside of .htaccess there rules like:
RewriteEngine on
RewriteRule ^thesite/([^/]+)/$ thesite/code.php?data=$1
I ...
0
votes
0answers
5 views
mod_rewrite to prepend `REQUEST_URI`
I want to prepend REQUEST_URI with /public but I have a little confusion how to set it.
I have tried:
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
but it won't rewrite ...
0
votes
1answer
6 views
htaccess preventing index.html from loading automatically
I've got the following htaccess file in my website's root folder:
# Deny access to everything by default
Order Deny,Allow
deny from all
# Allow access to html files
<Files *.html>
allow ...
0
votes
0answers
2 views
.htaccess RewriteRule for https specific prefix urls
Am wanting to create the https:// protocols on just these prefix urls on my site:
dream-portal.net/index.php?page=postratingspro
and
dream-portal.net/index.php?page=paypaltest
So anything in the ...
0
votes
0answers
6 views
Rewrite Rule to redirect a subdomain to the top level domain while removing subdirectories at the same time
The goal is to redirect:
sub.domain.com/blog/2013/07/hello-world/
to
www.domain.com/blog/hello-world/
The "2013" and the "07" can be any number, so here is my attempt:
RewriteCond %{HTTP_HOST} ...
0
votes
1answer
9 views
htaccess redirect to subdirectory and hide it
I've been struggling with this for a while.
My app structure is as follows:
- webroot
- app
- index.php
- .htaccess
I want that when someones goes to the webroot www.example.com to ...
0
votes
0answers
10 views
URL shows /index after using htaccess
I am using the following htaccess code to hide .html tag from url (address bar)
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ...
0
votes
2answers
13 views
htaccess Rewrite for clean URLs 2 get variables
Url rewriting doesn't seem to work.
I want to rewrite http://www.domain.com/files.php?key=file&id=10 to file/10
So this is the code I wrote in my .htaccess file:
RewriteEngine On
ReWriteRule ...
0
votes
2answers
11 views
Does the htaccess rules add up or cancel each other?
Quick question: Is this
Options -ExecCGI -MultiViews -Includes -IncludesNOEXEC -Indexes -SymLinksifOwnerMatch FollowSymLinks
equivalent to this
Options None
Options FollowSymLinks
?
0
votes
1answer
8 views
.htaccess subfoders, subdomains and addon domains
Here is my setup
Main Domain : foo.com
Sub Domain : sub.foo.com
AddOn Domain : bar.com
Directory Structure for sub domain on Root is this:
sub/ - for sub domain (which is the default)
Now I ...
-1
votes
2answers
13 views
How do I do a 301 redirect with RewriteRule using regex to change a word?
I need to rewrite my urls as follows:
http://www.mydomain.com/experiences/abc,123
http://www.mydomain.com/experience/abc,123
Basically I just need to drop the 's' in experiences. How the heck do I ...
-2
votes
1answer
21 views
URL rewirte directory names [on hold]
I have my website directory like this:
application
assets
system
And under application I got this:
help
contact
I created a file inside each one called index.php so the URL can look something ...
0
votes
2answers
11 views
htaccess redirect from development server
The server where I developed a wordpress site was indexed by google. The site is now live with the actual domain, but google searches find links to the site at development server adddress. The site is ...
0
votes
1answer
27 views
Netbeans still showing root folder
I'm starting a new Codeigniter project inside of Netbeans 7.3.1 and have the following set up for my file structure.
I have in the project properties set up as the web root is pointed to public_html ...