Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

.htaccess

0
votes
0 answers
114 views

Some advice/tips on htaccess redirect to preserve Search Engine rankings

I'm setting up a site redesign and I want to preserve my page rank. The old site existed in the subdirectory textsite. Ive moved all pages to the…
asked June 25, 2011 10:08 am CDT
cronoklee
0
votes
1 answer
50 views

Redirect wrong links Wordpress

I am using the following permalinks structure: /%postname%/ and I also have some multi-page posts that look like /%postname%/2. The problem is I see…
asked June 25, 2011 4:05 am CDT
Alex Dumitru
0
votes
1 answer
36 views

Php include in .htaccess not getting set

I am trying to set the include path for php in my htaccess file. It works on my local computer but on my dev server it doesn't work. Both ubuntun…
asked June 24, 2011 5:34 pm CDT
mahle
0
votes
0 answers
39 views

Htaccess redirect domain to dir

I would like to have a kind of redirect in a .htaccess-file for two domains: www.example1.com is the main-domein (so the dir of www.example1.com is…
asked June 24, 2011 3:26 pm CDT
Johan
0
votes
0 answers
28 views

WordPress MultiSite - Block Access to Subfolder on Server for All But One Site

The WordPress installation has several sites/domains. Separate from the WordPress installation is an HTML site in a subfolder on the server. I only…
asked June 24, 2011 2:17 pm CDT
WebGuru
0
votes
0 answers
41 views

Joomla www enforcing in urls with .htaccess, not working as it should

I have a joomla 1.6 website, and I want to enforce a www in the beginning of urls. I've written the following into htaccess: RewriteCond…
asked June 24, 2011 12:59 pm CDT
sabof
0
votes
0 answers
52 views

How can I get the user's IP while using both CloudFlare and MaxMind's GeoIP with mod_geoip?

CloudFlare provides the user's country from the originating IP but I need location on a city level so I've added MaxMind's GeoCityLite using the…
asked June 24, 2011 11:35 am CDT
user577660
0
votes
2 answers
29 views

Htaccess: Redirect www.subdomian.example.com to subdomain.example.com

I'm attempting to redirect all www.subdomain.example.com traffic to subdomain.example.com. Currently, if someone uses the www, they receive an error…
asked June 24, 2011 11:02 am CDT
csm232s
0
votes
0 answers
32 views

How to display of space in Richtext box same as present in the string

I am facing a strange problem. I have a string which contains proper spacing (as the string is copied from the excel sheet). When I assign this…
asked June 24, 2011 9:57 am CDT
Pravin Sharma
0
votes
1 answer
29 views

Htaccess problem

my htaccess file is belkow DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2…
asked June 24, 2011 9:55 am CDT
rohit
0
votes
1 answer
27 views

Why dont i have a loop error with these redirects

i know this may seem a bit of a question in reverse but i actually DONT seem to have a problem i just think that i should have given the setup i've…
asked June 24, 2011 9:41 am CDT
byronyasgur
0
votes
2 answers
49 views

Mod rewrite problem

I have this to overwrite http://mysite.com/intranet/symlinks/site.com to http://mysite.com/site.com or http://mysite.com/intranet/symlinks/site.net…
asked June 24, 2011 9:24 am CDT
rootatwc
1
vote
2 answers
28 views

Htaccess - Rewrite to capture friendly URL or querystring

I'm trying to come up with one or more rewrite rules that will take either a friendly url or a url containing the full query string. The plan is to…
asked June 24, 2011 8:51 am CDT
user287212
0
votes
1 answer
43 views

Htaccess Rewriterule virtual directories breaking all links

I think I've gone through a million articles and everyone's codes on this, but I just can't get it to work! Every code I try works but it shows the…
asked June 24, 2011 8:48 am CDT
scott
0
votes
0 answers
27 views

Mod-rewrite working conditionally

my htaccess file is belkow DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2…
asked June 24, 2011 8:36 am CDT
rohit
0
votes
0 answers
33 views

Htaccess: rewriting unlimited subdirectories

I have a fairly complex content management system I've written in PHP, which has unlimited hierarchical categories. Each category has a shortname…
asked June 24, 2011 7:27 am CDT
Nick
0
votes
0 answers
39 views

Htaccess for subdomain

Need help with .htaccess I have website on my localhost with this .htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f…
asked June 24, 2011 6:18 am CDT
Stasa
1
vote
1 answer
26 views

Strange url have slash / at the end of urls, and .php ( need help with htaccess )

I have check google webmaster tools and see lot of urls has been crawled, they look like mydomain.com/somefile.php/index.php or…
asked June 24, 2011 4:32 am CDT
Binh Nguyen
0
votes
2 answers
55 views

How to define a virtual root?

The root of my local server is /Users/myname/Sites and all web projects are in seperate directories in that e.g. /Users/myname/Sites/newproject The…
asked June 24, 2011 3:48 am CDT
user813720
0
votes
0 answers
32 views

Held needed with a slightly complex htaccess workaround for multisite!

I want to build a multisite structure. I have got a directory structure like the following : where home contains the main code and other folder…
asked June 24, 2011 3:15 am CDT
user546305
Pages : 1 | 2 | 3 | 4 | 5 > [124]
2472

.htaccess

Tagged: .htaccess
Related Tags
mod-rewrite × 737
apache × 673
php × 554
redirect × 322
url-rewriting × 131
wordpress × 116
rewrite × 111
regex × 102
url × 90
apache2 × 80
codeigniter × 67
subdomain × 56
html × 42
redirection × 40
domain × 32
seo × 30
linux × 28
security × 27
https × 25
server × 25
drupal × 23
ssl × 22
javascript × 22
php5 × 21
urlrewrite × 19
cakephp × 17