473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

rewrite in .htaccess

Hi,

I have been attempting to find a solution to a problem I have been having with what should be fairly strightforward. In my .htaccess I wish to put a rewriterule to replace /?page=york with /york. like this:

RewriteRule ^//?page=york$ /york

but this, and many variants failed to work, i.e. would still show the matched url

am i doing something silly here?
Jan 21 '08 #1
1 2155
Markus
6,050 Expert 4TB
Please see this thread.
Jun 4 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: frizzle | last post by:
Hi there. I have a domain, and i want every query string redirected to index.php? so domain.com/foo/bar would actually be domain.com/index.php?/foo/bar Then i want to be able to say in index.php,...
5
by: frizzle | last post by:
Hi group, I know this isn't the right group, but i didn't know what group else it should be. I have a php/mySQL system, wich uses mod rewrite to enhance urls. I have the following...
2
by: musiq021 | last post by:
I need a rewrite rule/rules for an .htaccess file that does the following... if a second variable is supplied... rewrites this... artistcat_VAR1_VAR2.htm --> artists.php?cat=VAR1&page=VAR2 if only...
5
by: Lupus | last post by:
Hello everybody In apache I used a feature called a "Rewrite rule" inside a .htaccess file to process the URL : i.e. http://www/mypage.html =http://www/page.php?page=mypage Now I'd like to do...
1
by: phpmind | last post by:
I am doing a mod rewrite on a page like the following: www.mysite.com/user/jsmith/ executes the following: www.mysite.com/result.php?user=jsmith This works but the top of my page where my...
3
by: Joe | last post by:
Hello, I currently have a file system where images and assets are stored in a directory like this: http://www.domain.com/assets/media/CLIENT_NAME/uploads/CLIENT_DIR/CLIENT_FILES Which holds...
1
by: arunj82 | last post by:
Hi all, I have a doubt in redirecting a url in htaccess file. for example, http://example.com/subfolder1/subfolder2 to http://www.example.com/subfolder1/subfolder2 How can do that...
0
by: adamjblakey | last post by:
Hi, I am working off local host and i want to use htaccess but i am unsure on the code that i would need. This is my normal re-write rule for a domain like e.g http://www.bob.com/info..php ...
8
hsriat
by: hsriat | last post by:
I had a .htaccess file for Rewrite on my server and was working fine. Now when I used the same code in 1and1 hosting, its not working. May be something is wrong or unexpectedly good happening...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.