1,226
questions
1
vote
1
answer
71
views
.htaccess trying to create Clean URLs mod_rewrite
I have read prior SO questions and read tutorials and I do not understand mod_rewrite fully so I am posting here
Options +FollowSymLinks
RewriteEngine On
#Using THE_REQUEST for catching references ...
2
votes
1
answer
87
views
.htaccess assistance with rewrite rule
I have trouble rewriting virtual directories as variables.. can someone help please?
The URL is:
https://www.example.com/content/index.php?var=1-dKein4i59xcNjfks
I want it to look like:
https://www....
0
votes
1
answer
41
views
mod_rewrite: Error 500 triggered when URI contains an existing file without extension followed by /whatever when using REQUEST_FILENAME
What I want to do
If the requested resource in the URL has no extension and a file name matches the resource, use mod_rewrite to service that file. Otherwise, trigger error 404.
E.g. request is /foo ...
2
votes
1
answer
61
views
.htaccess deny access to all except one specific file
I have this rule in my root .htaccess file:
# DENY ACCESS TO EVERYTHING INSIDE PHP DIRECTORY
RewriteCond %{HTTP_REFERER} !^http://(www\.)?someurl [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?...
1
vote
0
answers
67
views
Convert Wordpress url with querystring to slash-delimited "friendly" url
I want this link: site.com/c/web/theme/?filter_cms=wp
Convert to: site.com/c/web/theme/wp/
I found this code and edited it a bit:
add_action('init', function () {
add_rewrite_rule('^c/web/theme/([...
0
votes
1
answer
281
views
Pretty URL specific example
I've been searching for specific examples to answer my question about pretty URLs. Unfortunately, no luck. If anyone can help point me in the right direction that would be great.
Currently my URL is:
...
0
votes
1
answer
53
views
php + .htaccess issue when rewriting urls for pretty permalinks
I'm trying to make a very simple small app in php: it is a small caption system for a museum. The structure is an so an index.php file that sends requests via querystring to a details.php page where I ...
0
votes
1
answer
54
views
.htaccess: Pretty URLs and subfolders
I do not use subfolders except for images but somehow Google find links to subfolders which results in an indexing error. Example: https://example.com/mobile/page - the mobile folder does not exist.
I ...
0
votes
1
answer
34
views
HTACCESS Change URL to be more friendly but still send variable
I want to change this url:
https://www.ugocd.com/ilustracion?rubro=ilustracion
to be rewritten like this:
https://www.ugocd.com/ilustracion
but still send rubro=ilustracion because everything works ...
1
vote
1
answer
416
views
How to Implement SEO friendly URL instead of default URL pattern in ASP.NET Core?
I have a comparison module and the screen is looks like this:
When the user types the name, autosuggest popup and comparison will be shown in a table.
Now when I look at the URL, it looks like this:
...
0
votes
0
answers
168
views
How to make laravel pagination pretty instead of query params in Laravel 10?
I want to change pagination default from ?page=2 to /page/2
I have tried https://github.com/spatie/laravel-paginateroute but it is archived & used for old Laravel verisons.
How can I implement ...
-2
votes
1
answer
398
views
how to add a custom friendly URL while using AspNet.FriendlyUrls?
I Need your Help Please;
I'm developing a asp.net web application using c#
I used Microsoft AspNet FriendlyUrls to make url without the suffix aspx
in App_Code>App_start I added the following class
...
1
vote
2
answers
741
views
How to map a path parameters in URL to the action in Struts 2
We are using Struts 6.2 on Tomcat 9, and map all .action extensions to actions, for example save-user.action maps to an action correctly.
The web application needs to handle this path parameters ( ...
1
vote
2
answers
52
views
How to re-write this double variables url in htaccess in to pretty url
I just want this URL
example.com/?cat_page_10=2
into this URL
example.com/cat-page/10/2.html
the above URL has two (double) vairables 10 and 2 are both are flexable/dynamic variables they will ...
1
vote
1
answer
51
views
Rewrite a path with htaccess to different urls, based on calling path
I've been struggling to redirect to two different urls (files) based on what is in the path of the calling url, ie:
example.com/rh/xxxxx/ -> user.php?a=xxxxx
example.com/rh/xxxxx/yyyyy/ -> ...