Htaccess :: Rewrite A Hash # Or Other Symbol To A Question Mark

Oct 29, 2009

I simply want to rewrite a hash # or other symbol to a question mark via htaccess. So any hash in the URL anywhere should internally rewrite to a ?. All I want is to remove ? from the URL really.

View 2 Replies


Htaccess Rewrite

Mar 14, 2007

When someone types in I want it to display the main forum ( with ...../forums.html in the url bar. But without actually having a forums.html file present on the server. Can this be accomplished with htaccess?

View 2 Replies View Related

.htaccess To Lighthttpd Rewrite

Sep 23, 2008

I had a .htaccess working in my previouse hosting. It is not working with the new hosting which has lighthttpd.

Can anyone help me to change my below htaccess modrewrite code to lighthttpd url rewrite? Its urgent please.

RewriteEngine On ...

View 4 Replies View Related

Apache :: HTAccess - How To Do URL Rewrite

Oct 23, 2014

I have been trying to figure out how to do a url rewrite but no luck so far.

How can I have this [URL] ....

as the default [URL] ....

View 2 Replies View Related

Convert .htaccess To Lighthttpd Rewrite Rule

Jun 5, 2007

How do I go about converting the follow .htaccess file

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/comment-([0-9] ).html blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/feed/ blogs/syndication.php?entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/ blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/category/([-a-z0-9] ).html blogs/viewblog.php?username=$1&categorydata=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/ blogs/viewblog.php?username=$1&month=$3&year=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2}).html blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/archive.html blogs/viewblog.php?username=$1&displaymode=archive [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/feed/ blogs/syndication.php?username=$1 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/ blogs/viewblog.php?username=$1 [QSA,L]
to work with lighthttpds rules?

View 2 Replies View Related

Apache :: HTAccess Mod Rewrite Get Variables Not Working

Sep 7, 2013

I'm trying to rewrite the urls across a site I'm developing, which pass get variables like the following:

would look like:

The first link in the htaccess file works fine, but the following ones don't (whatever the order, the first one works). I'm attaching a snippet of the file here:

# http://localhost/html/content_quiz/quiz-results.php?quizid={number}# to# http://localhost/results/quiz/{number}RewriteRule ^results/quiz/([0-9]+)/?$ /html/content_quiz/quiz-results.php?quizid=$2 [NC,L]# http://localhost/html/content_pages/results.php# to# http://localhost/resultsRewriteRule ^results/?$ /html/content_pages/results.php [NC,L]# http://localhost/html/content_quiz/grade.php?quizid={number}# to# http://localhost/quiz/{number}/gradeRewriteRule ^quiz/([0-9]+)/grade/?$ /html/content_quiz/grade.php?quizid=$3 [NC,L]

View 1 Replies View Related

Apache :: Writing Htaccess Rewrite Rule?

Feb 21, 2014

I'm trying to change url structure so instead of /default/category/product.html it would show /category/product.html

With this line I've managed to do it on my personal blog

RedirectMatch 301 /default/(.*) //$1

But when I've implemented it on a customers Magento site it started showing double slashes like this //category/product.html and the whole template just collapsed .

View 17 Replies View Related

Wierd Htaccess Url Rewrite- Rewrites All Index Files

Apr 19, 2008

I have worked with mod_rewrite for years and never encountered this problem. I am converting html pages to a single php file and it works perfectly. I used htaccess the rewrite the urls to appear the same so that no links would be broken or lose SEO value.

The only problem is that my friend who also helped build the sites added different directories and within those directories are index.htm files that serve as a home page for the separate directory. Like /info/index.htm and /help/index.htm within the root directory. The problem is that for some reason my mod_rewrite directs to the main index.htm rewrite even if I include the whole path to the file. In htaccess I have this so far:

RewriteEngine on

RewriteRule index.htm$ index.php [L]
RewriteRule servers.htm$ index.php?action=servers [L]
RewriteRule movies.htm$ index.php?action=movies [L]
However there is a directory named "info" and inside that directory it has an index.htm file and it seems to conflict with my first mod_rewrite. I tried using:

RewriteRule /info/index.htm$ index.php?action=info [L]
and used other methods but none seem to work any ideas?

View 1 Replies View Related

Apache :: HTAccess Won't Process Rewrite Rule Despite Many Attempts

Apr 1, 2015

It should be a straight forward change. [URL] .... does not redirect to [URL]...... It simply tries to load /denver-cars/ and denver-cars is in the URL. Am I missing something here? I have tried moving it up and down the list of rules and have tried numerous types of flags to no avail. Everything else in the htacess works fine with out the line:

RewriteRule ^/(.*)-cars/ /newcars-in-$1/ [NC,R=301,L]

Here is my htaccess:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
# Force www
# Redirect google index dir's to new dir
RewriteRule ^/(.*)-cars/ /newcars-in-$1/ [NC,R=301,L]


View 1 Replies View Related

Apache :: HTAccess And Rewrite Rule - Show Existing Images

Mar 8, 2015

I'm using .htaccess to show existing images instead of images which does not exist.

RewriteBase /images/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)_(.*)1200x900.jpg$ esittely_$21200x900.jpg
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
RewriteRule liiga670x10.jpg esittely670x10.jpg [L]

Everyting works fine if an image does not exist.

But if an image does exist, the second RewriteRule
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
will be used.

Why is that so? How could I modify my code to prevent that? 

View 2 Replies View Related

Can't Post With @ Symbol

Sep 14, 2006

I am running on a VPS system, and I have some auction software and I run Vbulletin as well..

When someone trys to do a Private MEssage via Vbulletin using anything with the @ in it.. Like an e-mail address. And hit submit, it says " /private.php access is denied.

But it also does it when I post news in the auction site. Which leads me to believe their is something screwed up with one of the server settings.. But I dont know what?

View 6 Replies View Related

Undefined Symbol: XmlTextReaderSchemaValidate

Jan 21, 2008

I triad to make restart for my Apache I have this result:

PHP Code:

[root@server ~]# httpd restarthttpd: Syntax error on line 39 of /usr/local/apache/conf/httpd.conf: 

Syntax error on line 9 of /usr/local/apache/conf/php.conf: Cannot load /usr/local/apache/modules/ into server: 

/usr/local/apache/modules/ undefined symbol: xmlTextReaderSchemaValidate 

View 1 Replies View Related

Ultimahosts Goes Off The Mark

Dec 17, 2008

My worst experience is with Ultimahosts - the ultimate non professional behaviour. Today I have woken up to see my account suspended and without any notice or reminder!

reason: Your account has been terminated following the 1 year expiry the plan. This is the final notification.

Where is my reminder that my account is near expiry? When asked no answer has been recieved till now and that's why I am hoping to get some answer from Mr Mark here along with an opinion of experts and users of this forum...

View 10 Replies View Related

Ffmpeg Symbol Lookup Error

May 14, 2009

ffmpeg: symbol lookup error: /usr/lib/ undefined symbol: speex_header_free

I am using a centos 5 vps

View 4 Replies View Related

Check And Mark Bad HD Sectors

Oct 30, 2009

Loaded Ubuntu 9.10 last night and on first boot it tells me my HD have bad sectors. Which is nice, good reporting from the new Ubuntu edition.

So I kicked off "badblocks -f -v -s /dev/sda" this morning before I took off to work using SystemRescue CD. Came home during lunch and it is still running, looks like it is going to take forever.

This is a 500GB HD, I don't intend to buy a new one. I just want all the bad sectors marked so OS don't ever use them again. Is there a better utility than *nix badblocks?

View 3 Replies View Related

Mysqlhotcopy Error :: Undefined Symbol Mysql_server_init

Feb 4, 2008

I'm trying to use mysqlhotcopy on freebsd 6.1 with mysql 5.0.45, but I'm getting this error when executing it:

/libexec/ /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/mysql/ Undefined symbol "mysql_server_init"

at first, I was having problems compiling DBD-mysql, because mysql.h and mysqld_error.h wasn't on the include dir, so I had to add -I/usr/local/mysql-5.0.45-freebsd6.0-i386/include to cflags (I also tried -I/usr/local/include/mysql , but same happened)

since the error persisted, I changed all references to mysql_server_init (deprecated) to mysql_library_init (same for mysql_server_end -> mysql_library_end)

and the error still persists!

# ldd /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/mysql/ => /usr/lib/ (0x28178000) => /lib/ (0x28189000) => /lib/ (0x281a1000)

View 0 Replies View Related

Apache :: OpenSSL 1.0.2 - Symbol Lookup Error

Feb 20, 2015

I'm getting the below error message when trying to perform "configtest" after upgrading apache to 2.4.12 version with success.

/home/apache/bin/httpd: symbol lookup error: /home/apache/bin/httpd: undefined symbol: SSL_CONF_CTX_new

Note: I received the error after recently upgrading my openssl to 1.0.2.

Just wonder how to get rid of the error message.

Running on Ubuntu Server 12.04.05 LTS 32bit.

View 6 Replies View Related

Why Would Hotmail Mark My Servers Mail As Spam

Jan 19, 2007

I just switch to a new server and I found out that hotmails is marking all my mail as spam, it goes directly to the junk mail folder, however gmail and yahoo is ok.

I have a broken reverse dns thought that my be but I'm not sure, anyone have any experience regarding this?

View 12 Replies View Related

CPanel E-mail :: Don't Mark Spam As Read

Apr 24, 2015

I got setup by exim options to move spam messages to spam folder if turned on in cpanel options. And i have 2 questions.

1. Can i make it so the messages moved to Spam will not be marked as Read. Right now all messages are marked as read and if somebody won't check they box they won't know there is a mail there.

2. Is there a way to turn on spam box by default for all users, they can still turn it off if they want.

View 5 Replies View Related

Plesk 11.x / Linux :: Emails Mark As Spam From Gmail

Aug 7, 2013

I have tried to send emails to gmail from horde and form php but the are mark as spam even if the gmail headers are ok:

Received: by with SMTP id lj9csp202933lbc;
Wed, 7 Aug 2013 05:58:22 -0700 (PDT)
X-Received: by with SMTP id x9mr2966600eeu.103.1375880301851;
Wed, 07 Aug 2013 05:58:21 -0700 (PDT)
Return-Path: <>

[Code] ....

View 2 Replies View Related

Apache Rewrite ==> Lighttpd Rewrite

Jul 24, 2008

I dowload a scripts with a .htaccess file

DirectoryIndex index.php
RewriteEngine On
RewriteRule ^link/([0-9]+)[/]*$ /redirect.php?id=$1
RewriteRule ^link/([a-zA-Z0-9]+)[/]*$ /redirect.php?tag=$1

I want to convert it to lighttpd rewrite rules, urgent, also I can't contact with the scripts author,

View 0 Replies View Related

Kazix / Fatnetwork / "Mark" And "Jacob"

Mar 1, 2008

A year ago I started up a website for me and some friends. By the end of last year ( December ) the website had died and I knew that I ( being a broke college student ) wouldn't have the funds to pay for a renewal.

I contacted Kazix and told them I was having trouble figuring out how to cancel my account and asked if they could do it for me or inform me how. I received the following email on Dec 18th 2007:


As soon as the hosting is about to end. You will get notice from our billing department.

-- Regards, Mark Senior Administrator"

I figured this email would tell me how to cancel my account if I did not wish to renew it. I never received such an email.

I found out Friday that my banking account was over-drawn. I thought this was through my own error, but when I looked closely today, I noticed it was because, the third-party billing company used by Kazix/Fatnetwork, had charged me for hosting renewal and had caused my account to go negative.

I sent them an email informing them that I had asked back in December for my account NOT to be renewed and that they had in fact went ahead and renewed it anyways. I requested that they reimburse me the charge of the domain, hosting, and overdraft. I had wrongly thought that my domain name was processed through them as well.

I received an email from saying:

"Your domain is not registered by KAZIX – only hosted
See WHOIS by yourself
The respond you got not from us – from GoDaddy – your domain registrant

( Who is removed )

You never requrested a cancellation from us – blame yourself for over drafting, you should know where your account hosting with
I’ll refund the charge of $44.99 and cancel the 2CO subscription as well as your account with KAZIX– that’s all I can do for you"

I wasn't really expecting them to reimburse my overdraft charges ( really, why should they pay for their mistake that harms others? ). And I fully admit that I did honestly forget that my domain name was registered by my husband and not by Kazix. What did surprise me was the tone of the email. I did use the Kazix's contact form on their website to request that my hosting be stopped. Why would I contact Go-Daddy if I had completely forgot that they were the ones in charge of my domain? If I hadn't contacted Kazix, why did Mark send me an email from fatnetwork in response to my request to cancel my account? Yeah. Someone was just being rude and snippy because they didn't want to admit that they made a mistake.

I sent a reply back to the rude man and informed him that I found his email to be very rude and not a good way to handle customers. I also informed him that I did use the contact page on Kazix's website and that I fully knew who my hosting was through.

I received this email as a reply:

"I’m sure you have some other things to do Saturday night – not only be rude
I’ve responded you( from home, because billing is working only Mon-Fri )
I’ve refunded your charge immediately
I’m very glad you are not our customer anymore
Have a great weekend
Billing Department"

Me and my husband were both floored when we read this. Who would handle customer support this way? I couldn't believe that he would have the gall to call me rude just for me pointing out his own rudeness. Then of course there is the nice touch of "I'm very glad you are not our customer anymore." Could you imagine someone in retail or any other face-to-face business practice saying this to you?

You know I didn't leave Kazix because I found it to be "bad." I just left it because of my own financial reasons. I had some technical problems with them before and found them to be helpful. If I hadn't experienced all of this, I probably would have recommended them to others and used them again. Now? I seem them as a shady group of characters who care more about their customer's money than they do about their actual customers.

As I see it now, they obviously did not want me to cancel my hosting with them and obviously wanted to renew my account for the money. What about my say in not wanting their services anymore and wanting to keep what little money I had left in my checking account? It didn't matter.

Stay away from Kazix and Fatnetwork. Let my bad experiences be your warning.

View 1 Replies View Related

ASP.NET & URL Rewrite

Oct 27, 2007

I want a user to type and go to John Smith's homepage. His homepage is actually a dynamic page that is shared with all users which is I have created a URL rewrite script which finds the folder specified (JohnSmith) and finds the user ID from the database. It then displays the Shared.aspx page for the proper ID.

This works on my local machine because it's using Visual Web Developer as the hosting engine so it executes ASP.NET for every page load. When I upload this to an online host using IIS it fails because there is no folder named JohnSmith. I get a 404 online where I would get the proper page on my machine.

I have tried to work with 3 hosts to make this happen and noone can get this to work. I really need to either know what to tell the host to change or find someone who knows how to do this. I am obviously willing to change hosts if that's what it takes.

View 5 Replies View Related

Rewrite URL

Feb 27, 2008

I'm wanting to make it so everytime someone goes to a link starting with:

it rewrites it to this:

How do I do this?

View 3 Replies View Related

How I Can Use Mod-rewrite With Lighttpd

May 4, 2009

how I can use mod-rewrite with lighttpd.

Actually I am going to use phpprobid system and it has in built function for mod rewrite but I think it is for apache as if i turn it on I cant access pages

View 1 Replies View Related

Lighttpd Rewrite

Mar 30, 2009

How I can convert the following into lighttpd rewrite?


View 4 Replies View Related

Hotlinking (url Rewrite)

Aug 15, 2008

I'm facing some issues with hotlinking here. the htaccess do not work because users can still use their download manager to download the file without going to my site.

I've seen few sites that got tempoary url that changes every X times and that support download manager.

View 4 Replies View Related

Rewrite In Lighttpd 1.5

Mar 25, 2007

i had following rewrite (for wordpress multi user ) and it was working with lighttpd 1.4.x but i dont know its not working in 1.5


$HTTP["host"] == "" {
url.redirect = ("^/(.*)" => "http://%1/$1")
url.rewrite-once = ("^/(.*)?/?files/(.*)" =>
"wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1",
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*.php)$" => "$2", "." => "index.php")

and its showing following error


mod_rewrite.c.293: (error) url.rewrite contains a regex for '/' which
leads to a URI without a leading slash: index.php

View 1 Replies View Related

Mod Rewrite Rule

Feb 14, 2007

I have few subdomains pointing to a directory (using dedicated ip an A record)

I need the following rewrite rules:

[url]--> [url]
[url]--> [url]
[url]--> [url]

How can I do this?

View 3 Replies View Related

Rewrite Rules

Apr 15, 2007

How do I set up rewrite on lighttpd?

View 1 Replies View Related

Lighttpd Rewrite

Dec 23, 2007

to accomplish:

[url] ==> [url] however it should be proxied so that the user never sees [url]

This is because the sub domain is using apache while www is using lighttpd and I want to keep the entire site with www to the user.

View 3 Replies View Related

Copyrights 2005-15, All rights reserved