0
votes
0answers
35 views

Removing PHP extension and rewriting query string with .htaccess

I'm using extension-less URLs but now want to also support query strings but have them seo friendly. I want to be able to use URLs like: domain.com/somefile/1234 OR domain.com/somefile/1234/delete ...
2
votes
1answer
17 views

query string gets ignored after mod_rewrite

I am using the following rewrite rule in my .htaccess file to send all requests to the index.php file located at the root: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
1
vote
1answer
108 views

.htaccess - redirect to page/dir, while all pages/dir are internally parsed as query string parameters

Scenario: I have a .htaccess file that is handling a lot of rewrites (I am aware it would be possbile/easier in PHP) Everything worked fine /some/fake/dir/foobar was internally rewritten to ...
0
votes
1answer
104 views

Apache Url Rewrite Query String SEO

I have the following rewrite. RewriteRule ^/news/([a-z0-9\-]+)/([a-z0-9\-]+)/?$ /pagebase.php?pbid=3656&nid=$1&title=$2 [QSA,L,I] http://www.domain.com/news/1/new-event/ So that the above ...
0
votes
0answers
35 views

Keeping the query string, but hiding it in the Url

I am trying to change URL's in a .htaccess folder. I have www.example.com/product/?p=12 but I want to have www.example.com/product/buy-product I've made a rewrite rule which I've listed below. ...
1
vote
1answer
85 views

How to rewrite a url with a question mark?

Is it possible to rewrite an url with a question a mark in it? For instance, http://localhost/mysite/search?tag=mars to become this, index.php?url=search&tag[key_name]=mars I tried with ...
0
votes
1answer
135 views

mod_rewrite to change query string parameter name

I need help writing a mod rewrite rule to change the name of a query string parameter. I want to change the name, not the value. old name partner new name a_aid so a link like this ...
0
votes
0answers
207 views

Apache - RewriteCond QUERY_STRING

I've searched over here something close to what i need, havent found. So there we go. I've got a MediaWiki, the MediaWiki vhost uses mod_authnz_ldap to authenticate via LDAP, however, the Collection ...
0
votes
2answers
31 views

Apache Redirect Using %{QUERY_STRING} To Match A String Anywhere

I'm looking to do an Apache redirect using %{QUERY_STRING} but it simply isn't working. I am wanting to redirect any web page query that has a string anywhere in the URL. So for example: ...
0
votes
1answer
97 views

IIRF / APACHE Rewrite Conditions Fail with query string

I have a CMS System that converts the ugly URLs into more friendly ones. So far instanstance, instead of the page url being something like this: /pagebase.php?id=3644 I have a url write setup ...
2
votes
1answer
268 views

How can I mod_rewrite and keep query strings?

I want to mod_rewrite a URL to another page, but then I also want any query strings added to be preserved. RewriteEngine On #enforce trailing slashes RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
110 views

rewriting url with query string

in continuation to what i asked here i want to auto rewriting of below url http://testsite.com/siterootb/sample-page.php?bbi=value1&bbl=value2 to ...
0
votes
1answer
144 views

RedirectMatch query string issue

I am moving content on a previous website where 2 copies of the site were made to translate it so that i only have one remaining. To provide fallback access, i wrote this rewritematch rule : ...
0
votes
2answers
109 views

How to remove any query except `callback` for specific URLs with RewriteRule?

The current RewriteRule removes any query except query callback for any URL. # Remove question mark and parameters RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^?#\ ]*)\?[^\ ]*\ HTTP/ [NC] # Query ...
0
votes
1answer
208 views

Apache mod_rewrite remove empty query string parameters?

Is it possible to remove empty query string parameters from a URL with Apache's mod_rewrite? A simple PHP script has an HTML form which submits to itself via GET. The HTML form has many input fields ...

1 2 3 4
15 30 50 per page