the “%3A” is hex for a colon “:” and the “+” look to be spaces that have been urlencode-ed.
You didn’t post that part of the code?
Anyway, if you want 1/Himachal+Main or 1/Himachal%20Main I think the appending should be a slash not a hyphen, no? And no leading or trailing space character?
I have resolved + and %3A is for “:” deliminator that I am using to seperate two passed values.
I am sending the values from index.php and the url is localhost/abc/index.php and some part of the code for index.php is as
I am worried about .htaccess file because I have only doubt on this
and I have checked in my local xampp server for the rewrite mod is enabled or not and it is enabled.
I’m afraid I may have made things more confusing while trying to understand.
To be clear, please correct me if any of this is wrong.
There is PHP code that is generating what will be used as GET query strings. eg. the “some-name=some-value” part. htttp://example.com/some-folder/some-file.php?some-name=some-value
But you want HTTP Requests like http://example.com/some-folder/some-value
to go to htttp://example.com/some-folder/some-file.php?some-name=some-value
where “some-file.php” will use the GET “some-value” to determine what is output and displayed.
In this case “some-value” is an id and a name that look like folders in the browser address bar. eg. http://example.com/some-folder/id/name
If this is so, I think the “not a directory, not a file” lines are OK. What needs to be worked out is the rewriteRule that will match the HTTP Requests.
I am running the project in local mahcine using Xampp and I enabled rewrite module in .congfig file. OKay,
I have a project name abc(folder name) that contains project files with the below directory structure:
abc–
index.php
package.php
login.php
…
etc
css–
style.css
style1.css
…
etc
js–
some js files
img–
etc
When i load the project, index.php is the first page to be loaded and its working fine…
I have project id in index.php page and this is the way to pass to package.php
First rewrite rule to convert the get value url into proper way
and second for hiding the extension(.php)
If i check manually with http://localhost/abc/package/1, my css,js,imgs does not load
But the thing is that why i need to enter it manually, it should automatically convert to localhost/abc/package/1 by .htaccess
Now come to your reply:
Frist point is correct some name means $_GET variable name that contains some-value
htttp://example.com/some-file.php?some-name=some-value (somefilename = package.php, some-name = packagestring, some-value = 1)