| Forum: Htaccess Questions |
|---|
| Topic: Help ME Pls !! |
|---|
| Help ME Pls !! [message #1445] |
Tue, 27 October 2009 19:58 |
pkbnaveen Messages: 1 Registered: October 2009 |
|
|
|
Dear Sir,
I have hosted Five Domains in my hosting account of which filewax.com is the primary.
I want to run Wordpress Multiuser in waxblogs.com. I created a A record for wildcards in totaldns management. Now, If i visit *.waxblogs.com ( where * is any name ) it points to the root of the server and not to the waxblogs folder.Can you please help me with this issue ?
I want *.waxblogs.com to point to the waxblogs folder than the root folder.
If I am not clear,
For eg )
If i point test.waxblogs.com, it doesnt go to the root folder of waxblogs.com rather it goes to the root folder of filewax.com since the a record created was on the ip. Help me please !
|
|
|
| Topic: bulk redirect |
|---|
| bulk redirect [message #1337] |
Sat, 03 October 2009 03:43 |
davidswain Messages: 1 Registered: October 2009 |
|
|
|
Hello
I use a wordpress blog to run my site and use categories to assign posts to different sections of my cv.
now i have created a category template so the cv displays as i want when viewing the 'cv' category, but i would like to add redirects from the 'proper' post urls back to cv.
for example
/cv/sub-cat/post-name/
/cv/sub/cat/
all redirect to
/cv/
i just cant figure out how to do it!
Any ideas?
David
|
|
|
| Topic: How to prevent access to subfolders, except when images |
|---|
| How to prevent access to subfolders, except when images [message #1314] |
Tue, 29 September 2009 15:33 |
zegenie Messages: 1 Registered: September 2009 |
|
|
|
I'm trying to write an .htaccess rule that will allow me to stop users accessing any files in a specific list of subdirectories, exccept for images.
I've been reading around and finding a lot about image hotlink prevention, but this is almost the excact opposite of what I'm trying to achieve 
Can anyone help me with this?
Thanks!
|
|
|
| Topic: redirect behaviour question |
|---|
| redirect behaviour question [message #1309] |
Mon, 28 September 2009 23:31 |
jonnyfolk Messages: 1 Registered: September 2009 |
|
|
|
Hi,
I have a question concerning the redirection of a search engine friendly address to a script elsewhere on the server.
Ideally the address I am inputting is simple: http://www.mysite.com/ghullo
RewriteRule ^(.*)$ cgi-bin\/ws.pl?prop=$1 [NC]
however in this instance $1 reads 'ws.pl' which is clearly not what I need!
By adding an extra directory:
RewriteRule ^o/(.*)$ cgi-bin\/ws.pl?prop=$1 [NC]
and using the address http://www.mysite.com/o/ghullo
I get $1 to read 'ghullo' which is correct.
Can anyone explain why this is happening and how I might achieve my goal?
Thanks,
Jon
|
|
|
| Topic: 400 Bad Request |
|---|
| 400 Bad Request [message #1280] |
Wed, 23 September 2009 17:26 |
Sam001 Messages: 1 Registered: September 2009 Location: - |
|
     
|
|
Hi form Hungary!
I write a program in Delphi, and i use mxWebUpdate component to update my program via net. The program and the update works.
But i must use login and password for the update, so i place .htpasswd and .htaccess files to the server. When i try to run my program, the server give me this answer:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Request header field is missing ':' separator.<br />
<pre>
lehetővé téve az ujdonságok telepítését. Kívánja folytatni a folyamatot?</pre>
</p>
<hr>
<address>Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g Server at misc.hu Port 80</address>
</body></html>
Please help me, why the server give this reply? I tried
- md5 in .htpasswd file
- and without md5
and neither works. Any idea?
Thx.
(((I know, i know... I have to learn English...)))
|
|
|
| Topic: htaccess redirect issues |
|---|
|
| Topic: htaccess directory files rewrite |
|---|
| htaccess directory files rewrite [message #1224] |
Wed, 09 September 2009 09:32 |
sureshnachiappan Messages: 1 Registered: September 2009 Location: chennai |
|
|
|
hello all,
i am having the folder called "message", in that there is sub directory called "inbox" , in the inbox folder i am having "message.php".
To access the message.php we usually use the following URL,
url:http://test.com/inbox/message.php?view=inbox
but i need to use a url with the following syntax :
URL : http://test.com/message/
how should i do it in the htaccess?.
thanks
|
|
|
| Topic: 301 Redirect issue |
|---|
| 301 Redirect issue [message #1187] |
Tue, 18 August 2009 12:15 |
mkmajeed Messages: 2 Registered: July 2007 |
|
|
|
Hello,
I have one folder in my site
www.MYSITE.com/books-from/
I want it to redirected to
www.MYSITE.com/books/from/
but I want that URl in side www.MYSITE.com/books-from/ remains intactonly root of this folder should redirect. i.e. even after redirection i want following page to be accessible
www.MYSITE.com/books-from/pakistan/
is this thing possible? if so, please help how can I achieve it
|
|
|
| Topic: Debug htaccess line by line |
|---|
| Debug htaccess line by line [message #1182] |
Fri, 14 August 2009 13:32 |
ErwinVanLun Messages: 1 Registered: August 2009 Location: Amsterdam, Sydney |
|
|
|
I'm looking for a .htaccess emulator: a tool which reads an excel file of input URL's and output URL's, shows the output URL's and where there are failures.
It will allow me to create a database script with URL's and feed this into this tool, and manage exceptions
Furthermore, it should allow me to test a path like:
http://www.example.com/test.html
and see which rewrite rule (or redirect/match) modifies this in:
http://www.example.com/example/test.html
Ideally, it would allow me to edit the .htaccess, parse the syntax by highlighting colors, and have version control.
Is anyone familiair which such a tool?
|
|
|
| Topic: remove .php extension from just 1 URL |
|---|
|
| Topic: .htaccess Help |
|---|
| .htaccess Help [message #1171] |
Sat, 08 August 2009 04:47 |
mrmbarnes2 Messages: 1 Registered: August 2009 |
|
|
|
------------------------------------------------------------ --------------------
Hi All
I haven't really done much with .htaccess before and little help would be great. I have read allot of tuts but I am not too sure why I am having a problem.
I have the following code:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^pageid=1248614053$
RewriteRule ^content\.php$ http://11.12.14.10/~motorcar/links.htm? [L,R=301]
At the moment it is working the wrong way around....
If someone goes to the links.htm page they should go to the content.php?pageid=1248614053.
Instead if they go to content.php?pageid=1248614053 they are redirected to links.htm.
Any ideas on how to get this working correctly?
Thanks for any help.
mrmbarnes
|
|
|
| Topic: url rewriting problem |
|---|
| url rewriting problem [message #1156] |
Wed, 29 July 2009 20:39 |
solsimayu Messages: 1 Registered: July 2009 |
|
|
|
Hello,
I have a classifieds website written in PHP.
I had the following code in my .htaccess :
#Options +FollowSymLinks
RewriteEngine on
RewriteRule index/a/(.*)/b/(.*)/ index.php?a=$1&b=$2
But this didn't maKe my site SEO friendly.Can anyone please help.
(My web host has the following in FAQ:
.htaccess file - the .htaccess file is used to override certain Apache rules/directives. There are directives that cannot be overridden and every attempt to do so will lead to '500 Internal Server Error'.
Options +ExecCGI -FollowSymLinks +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch - those directives are pre-defined. If the .htaccess file you wish to use has any of those present you must comment them by placing the # symbol in-front of the directive.
- '500 Internal Server Error' will show up if an attempt is made to change PHP values (turn on/off) through an .htaccess file. Such lines should be commented and the desired change must be made by editing /sys/php4/php.ini or /sys/php5/php.ini depending which PHP version is set as global for the whole account - this can be checked by clicking on the PHP Settings icon in the control panel. )
thnaks
|
|
|
| Topic: redirect question |
|---|
| redirect question [message #1151] |
Mon, 27 July 2009 16:43 |
fionatighe Messages: 1 Registered: July 2009 |
|
|
|
hi there,
I have built a web app on the .com
I have created a marketing site on the .ie
I want to redirect from www.newsite.com to www.newsite.ie
and from http://newsite.com to www.newsite.ie
However any other URL's such as www.newsite.com/folder1/file.html
should not be redirected.
Any ideas?
Regards,
Fiona
|
|
|
| Topic: htaccess redirect question |
|---|
| htaccess redirect question [message #1145] |
Thu, 23 July 2009 05:41 |
mexicomatt Messages: 1 Registered: July 2009 |
|
|
|
hey guys - i am trying to build my first ever "build a niche store" platform website. I have to "cloak" my ebay links, but when clicking on an auction item link, it shows cloaked but the page it directs to is a "blank" template page within my site instead of ebay itself. If i post my current htaccess file, i wonder if anyone can give me any suggestions on whether it could be causing the problem - my server host has told me he supports mod rewrite, so he suggested i check for issues on my htaccess file ....
here it is :
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{ENV:REDIRECT_STATUS} !^$
RewriteRule .* - [L]
RewriteRule ^install.php install.php [QSA,L]
RewriteRule ^search/([^/]+)?$ index.php?mainCat=search&q=$1 [QSA,L]
RewriteRule ^([^/]+)/([^/]+)?$ index.php?mainCat=$1&subCat=$2 [QSA,L]
RewriteRule ^([^/]+)?$ index.php?mainCat=$1 [QSA,L]
thanks in advance ........
if anyone can explain what my .htaccess file is saying also, i'd really appreciate it - i am NOT a techy ....
|
|
|
| Topic: URGENT: mod_rewrite help, CodeIgniter + WordPress (WP) |
|---|
| URGENT: mod_rewrite help, CodeIgniter + WordPress (WP) [message #1144] |
Wed, 22 July 2009 18:22 |
htaccessNewbie Messages: 1 Registered: July 2009 |
|
|
|
I have a CodeIgniter application with WP installed in /cms/ folder (under root). I am able to access WP pages provided /cms/ is in the URL. However, I want to eliminate the /cms/ part of the URL. So:
Instead of: www.domain.com/cms/my-article-in-wp/
I want: www.domain.com/my-article-in-wp/
I have no .htaccess file in the /cms/ directory. In my root directory, this is what I have:
Options -Indexes
Options +FollowSymLinks
Options -MultiViews
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
#-----------------------------------------------------------------------------
# Integrate WordPress per
# http://groups.google.com/group/nzphpug/browse_thread/thread/e35d10e39ec0d95?hl=en
#-----------------------------------------------------------------------------
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^cms/(.*)$ /cms/index.php [L,QSA]
#RewriteRule ^cms/(.*)$ /cms/index.php/$1 [L,QSA]
#-----------------------------------------------------------------------------
# CodeIgniter
#-----------------------------------------------------------------------------
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]
#RewriteRule ^(.*)$ /index.php/$1 [NC,L,QSA]
#-----------------------------------------------------------------------------
# Secure .svn directories
#-----------------------------------------------------------------------------
RewriteRule (\.svn)/(.*?) - [F,L]
</IfModule>
The above rewrites behaves like this:
* CodeIgniter still works fine
* WordPress pages still accessible with /cms/ in the URL
* WordPress pages without /cms/ in the URL results in CodeIgniter 404
I really need to get this working. Can anyone help? Thanks.
|
|
|