Directory-level configuration file found mostly on Apache web servers
2
votes
1answer
354 views
GoDaddy-Drupal Site down due to mysql password change, how to change it back?
PDOException: SQLSTATE[28000] [1045] Access denied for user 'lev1127301002684'@'188.121.41.131' (using password: YES) in lock_may_be_available() (line 167 of ...
2
votes
1answer
562 views
How to redirect user into mobile website?
Hi how to redirect the user into mobile site when the user accessing from mobile. Say example i have site called www.mysite.com. Now, a person accessing a website from mobile it should redirect to ...
2
votes
1answer
1k views
How do I make SEO friendly URLs from my PHP pages?
I'm pretty new to this and was wondering how to turn my site URLs into SEO friendly URLs using .htaccess and mod_rewrite?
My URLs take the form mydomain.com/index.php?pid=1&pagename=Some Page
I ...
2
votes
2answers
1k views
Is it possible to force a directory index to display even if an index file exists?
On my Apache server I need to display a directory index of a given folder even if it already contains an index file that has been defined in DirectoryIndex. In this case an index.html file exists, but ...
2
votes
1answer
127 views
How to come back to old URL already redirected with 301? What is the impact to SEO?
I have recently moved my old site (built with dreamweaver) to a new one (with new design and using wordpress). It was done last August, 1st and as the urls with WP chnaged completly, I had to do ...
2
votes
1answer
405 views
Duplicate content for sub domains i.e. example.com/subdomain/index.php seen the same as example.com/subdomain/ [duplicate]
Possible Duplicate:
What is duplicate content and how can I avoid being penalized for it on my site?
I have a website with some sub domain folders and seomoz is picking them up as both ...
2
votes
2answers
5k views
Redirect/Rewrite Subdomain to Subfolder
I'm trying to redirect a subdomain to a subfolder e.g. forums.domain.com to www.domain.com/forums
Note that I started the forums in the subfolder format but worried that members might mistakenly try ...
2
votes
2answers
121 views
Implications on automatically “open” third party domain aliasing to one of my subdomains
I have a domain, let's call it www.mydomain.com where I have a portal with an active community of users.
In this portal users cooperate in a wiki way to build some "kind of software".
These software ...
2
votes
1answer
313 views
Trigger IP ban based on request of given file?
I run a website where "x.php" was known to have vulnerabilities. The vulnerability has been fixed and I don't have "x.php" on my site anymore.
As such with major public vulnerabilities, it seems ...
2
votes
1answer
43 views
Simple RewriteRule [duplicate]
I'm trying to write a RewriteRule to make a simple url. I want users to be able to type enter
www.example.com/somepage
and have it take them to
www.example.com/abc/somepage.php
How can this be ...
2
votes
1answer
55 views
Redirect domains single pages and maintain url
I have several domain names that need to point to individual pages on a single host and still maintain the URL. For example:
examplesite1.com needs to point at mainsite.com/examplesite1.php but ...
2
votes
1answer
51 views
.htaccess redirect with mod_rewrite
I moved my wiki from
http://jklatex.square7.de/wiki/doku.php/start
to
http://logicpuzzle.square7.de/start
and now i want to redirect the URL with mod_rewrite. My .htaccess is as follows:
# BEGIN ...
2
votes
1answer
169 views
Redirects On Image Files to Counter Google Image Gallery
The recent update to the way that Google displays images appears to have resulted in a significant drop in the traffic reaching the actual pages of our website. We are considering potential solutions ...
2
votes
2answers
61 views
My .htaccess entry is not working
The below are all my .htaccess entry:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.acethehimalaya\.com$ [NC]
RewriteRule (.*) http://www.acethehimalaya.com/$1 [R=301,L]
redirect 301 ...
2
votes
2answers
100 views
Does https affect me from being indexed?
In my .htaccess, I am forwarding all non secure traffic to https:
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://site.com/$1 [R=permanent]
My website still hasn't been indexed yet and ...
2
votes
1answer
339 views
How to make Htaccess file call external IP block lists?
Well, I don’t know if this is an easy thing to do, but I haven’t figured it out yet. Instead of continually updating my Htaccess file with newly updated country IP block lists (because my htaccess ...
2
votes
1answer
86 views
htaccess URL rewriting
I want to redirect a request look like
mydomain.com/abc/def
to
mydomain.com/abc/index.php?q=def
where abc is a fixed directory name and def can be any string.
How can I do this using .htaccess?
...
2
votes
1answer
59 views
htaccess rewriterule for aliasses
On our main domain we are running a CMS which feeds several domains with different input.
The domains are directed with A records to the main ip address. The htaccess works fine it will bring up the ...
2
votes
1answer
59 views
301 re-direct all external links to new domain
I have changed the main domain to a sub-domain & would like to re-direct all external links to the new sub domain. Have read a few articles but having no luck editing the .htaccess as it might be ...
2
votes
1answer
224 views
Remove multiple trailing slashes in a single 301 in .htaccess?
There is a similar question here, but the solution does not work in Apache for our site.
I'm trying to remove multiple trailing slashes from URLs on our site. I found some .htaccess code that seems ...
2
votes
1answer
302 views
Need a generic way to create SEO friendly URL
I have searched a lot and implemented many many Regular Expression in my .htaccess file but can not succeed. How do I find a generic way that make my URL SEO friendly?
Currently this is in my ...
2
votes
2answers
277 views
Help with URL Rewrite
I have a page that selects some info from a database
and displays it with a link to a second page that uses
the result to query the database, something like this:
$sel=mysql_query("select id, title ...
2
votes
1answer
194 views
.htaccess rewrite , parked domain on another site to read the proper domain name
I have a parked domain ¨mysite.co.uk¨ on another domain name webspace in a folder and need to rewrite the mysite.co.uk domain name in the browser URL as it currently shows the Other domain name while ...
2
votes
3answers
2k views
.htaccess mod_rewrite 500 internal server error
Whenever I place my .htaccess file in my web directory I receive a 500 internal server error and within the error.log file specifying:
[Sat Jan 21 13:46:07 2012] [error] [client xx.xx.xxx.xx] Request ...
2
votes
1answer
653 views
.htaccess file ignored on Ubuntu Apache 2 server
I'm having a problem with an .htaccess file on a newly installed Ubuntu server running Apache2.
The .htaccess file in the directory where the WordPress files are located isn't being take into account ...
2
votes
1answer
417 views
CMS Made Simple: Why does home page return a 404 under www subdomain?
Anyone know why my homepage wont load with the www prefix.
Links such as
www.mysite.net/about-us
will load fine
but
www.mysite.net
returns a 404.
Everypage works including the home page if I ...
2
votes
1answer
92 views
Whats wrong with my htaccess?
I have this .htaccess in a po_systems folder of my website
# Set up mod_rewrite
RewriteEngine on
RewriteRule ^build_system/([^/]+)/([^/]+)/?$ ...
2
votes
1answer
754 views
Extend depth of .htaccess to all subfolders and their children
I need to be able to use .htaccess in all subfolders for full depth. E.g. I have .htaccess in public_html folder:
\public_html\.htaccess
How I make it to work for the folder small as well?
...
2
votes
1answer
281 views
Modify .htaccess to allow existing files without extension to be served
I have the following .htaccess:
#If the requested URI does not end with an extension OR if the URI ends with .php*
#(where * is optionally one or more numbers)
RewriteCond %{REQUEST_URI} !\.[^/]+$ ...
2
votes
1answer
78 views
Issue with permanent redirect implementation
I have a tricky problem related to 301 redirections I badly need help with.
I tried to implement these via .htaccess, but ran into trouble.
The start of my .htaccess looks like this:
SetEnv PHP_VER ...
2
votes
1answer
107 views
Effective combatting of 100's of spam links in Google Results
I have recently been the victim of this hacking exploit (blog post is for reference only and is not my site. I'm in the process of following it and cleaning up after the attack).
Note the exploit at ...
2
votes
1answer
695 views
.htaccess mobile redirect issues
I'm trying to set up a mobile redirect for a site with 2 subfolders, and I cannot get both to work at the same time.
This is the structure of the site
www.mysite.com/EN/
www.mysite.com/ES/
This is ...
2
votes
2answers
60 views
I want to redirect anyHOST.anyTLD to www.anyHOST.anyTLD
I'm trying to find a generic enough modrewrite rule that will acomplish following:
Redirect anyHost.anyTld to www.anyHost.anyTld
Not mess with any other subdomains, for examle other.anyHost.anyTLD ...
2
votes
1answer
286 views
Merging two sites into one, how to redirect from the domain that's going away?
I haven't been able to find any existing questions that cover my exact issue, so here goes:
My client wants her two sites (domain1.com and domain2.com) rolled into a single, new site under ...
2
votes
1answer
414 views
Multiple 301 redirects, do search engines/viewers see them all?
I've put in place lots of different 301 rules to deal with numerous url changes.
And for certain URLS there are 3-4 different 301 redirects landing the visitors to the new URL.
I heard that 301 ...
2
votes
1answer
1k views
Joomla 1.6 URL rewrite on IIS7 (removing /index.php/)
Joomla 1.6 was released today and I'm wondering if anyone knows how to get rid of the /index.php/ part?
How link looks now:
http://www.example.org/index.php/stuff
How link would look after URL ...
2
votes
1answer
93 views
file need to go through a php page using .htaccess
I'm looking for a way to convert this type of url : h11p://www.mywebsite.com/dl/F5EGD6
Into h11p://www.mywebsie.com/dl/files/my_file.zip sing a PHP page to request the URL from the DB with F5EGD6. I ...
2
votes
1answer
392 views
What are the AllowOverride settings if you're hosted on GoDaddy?
I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?
2
votes
2answers
283 views
How can I rewrite an old URL using variables to a static html page?
I am an htaccess newbee
I am trying to redirect the old URLS for my site to the new URLS for my site.
The old site used variables in the URL but the new site uses SEO friendly URLs.
When I try to ...
2
votes
0answers
11 views
How to use .htaccess to make a subfolder act as a subdomain [duplicate]
I have to make a new site for every subdomain I want to add directly on my host, so I'd like to make them subfolders and redirect like this so they look like subdomains anyway.
For example, how could ...
2
votes
1answer
27 views
Force url to use www [duplicate]
I'm confused about how to force my url to use www in the address.
I have a .htaccess code like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
...
2
votes
0answers
45 views
Replacement for DirectoryIndexRedirect for older versions of Apache
DirectoryIndexRedirect is available in version 2.3.14 and later. (mod_dir)
Is there an alternative method for older versions? I have different DirectoryIndex directive sets for a lot of directories ...
2
votes
1answer
102 views
How to set htaccess working on opensuse for codeigniter project
I'm trying to have htaccess work on codeigniter project but the module is not working and I don't know how to enable rewrite module. To have read the htaccess. The OS is Opensuse 12.2.
I have this ...
2
votes
1answer
107 views
how to fix .htaccess - redirect http://408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111
We want to use mod_rewrite and .htaccess to do a redirect. How do we redirect http://408.111.1111.domain.us/ and www.408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111 ? If the ...
2
votes
1answer
181 views
Is my htaccess setting hurting SEO?
I have a site that I have redirecting to https. I do this to leverage wildcard SSL for my password protected pages. Everything seems to work fine with testing. For example, whether you type in http or ...
2
votes
1answer
103 views
RewriteRule for URL Subdirectory Root
Have not found this in my searches on SE.
I need this scenario to work:
• User visits someurl.com/news/folder or someurl.com/news/somefolder/, they get redirected to someurl.com/somefolder.
• If ...
2
votes
1answer
67 views
Rewrite catalog/index.php to www.domain.co.uk
We have an online shop with a welcome page. Our SEO company has asked us to get rid of the welcome page with a rewrite. I am struggling to get this to work. Can you help please?
I want to rewrite ...
2
votes
2answers
151 views
Send 404 Status Code on www.domain.com
Does anyone know if it's at all possible (preferably with htaccess), to send a 404 error code and page when visiting http://www.domain.com but have http://domain.com working just fine?
I want to 404 ...
2
votes
0answers
209 views
Seeking htaccess help: Converting multiple subdomains (both http and https) to www.domain.com using .htaccess
I've been trying to get an answer to this question on other forums (the folks at SuperUser thought this was the place I needed to post) and via my connections, but I haven't gotten very far. Hopefully ...
2
votes
1answer
93 views
How to track a cronjob running on my site?
I have an old Joomla 1.5 site hosted on a shared Bluehost server.
Recently my .htaccess files are being rewritten every 10 minutes, and the site has been black listed.
It looks like some php cronjob.
...
